/* Long-form sub-pages (support, privacy, terms, 404).
   Load after style.css and use <body class="page">. */

/* Page override: top-aligned, natural scroll */
body.page {
  display: block;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Layout */
.doc {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 32px 32px;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(240,238,232,0.82);
}

/* Logo */
.doc-header {
  display: flex;
  margin-bottom: 40px;
}

.doc-logo {
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.doc-logo img {
  height: 88px;
  width: auto;
  display: block;
}

/* Heading block */
.doc .eyebrow {
  margin-bottom: 12px;
}

.doc-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.doc-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(240,238,232,0.88);
  margin-bottom: 8px;
}

.doc-updated {
  font-size: 0.9rem;
  color: rgba(240,238,232,0.7);
  margin-top: 8px;
}

/* Sections */
.doc-section {
  margin-top: 40px;
}

.doc-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(240,238,232,0.12);
}

.doc-section p,
.doc-section li {
  font-size: 0.98rem;
  line-height: 1.7;
}

.doc-section p + p {
  margin-top: 12px;
}

.doc-section ul + p {
  margin-top: 12px;
}

.doc-section ul {
  margin: 12px 0 0 1.25rem;
  padding: 0;
  list-style: disc;
}

.doc-section li + li {
  margin-top: 6px;
}

.doc-section li::marker {
  color: var(--red);
}

.doc a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(240,238,232,0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.doc a:hover,
.doc a:focus-visible {
  color: #fff;
  text-decoration-color: var(--red);
}

.doc strong {
  font-weight: 600;
  color: var(--ink);
}

/* Contact card */
.contact-card {
  border: 1px solid rgba(240,238,232,0.12);
  border-radius: 12px;
  padding: 24px;
  background: rgba(240,238,232,0.04);
  margin-bottom: 8px;
}

.contact-card p + p {
  margin-top: 8px;
}

.doc .contact-email {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.15rem, 4.5vw, 1.6rem);
  font-weight: 600;
  word-break: break-word;
}

.contact-card + p {
  margin-top: 20px;
}

/* Address */
.doc-address {
  font-style: normal;
  margin: 0 0 12px;
  line-height: 1.7;
  color: var(--ink);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid rgba(240,238,232,0.12);
  padding: 14px 0;
}

.faq details:first-child {
  border-top: 1px solid rgba(240,238,232,0.12);
}

.faq summary {
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  list-style: none;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--red);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.faq details p {
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(240,238,232,0.82);
}

/* Footer */
.doc .footer {
  margin-top: auto;
  padding-top: 48px;
  align-items: flex-start;
  text-align: left;
  color: var(--ink-mid);
}

.doc .footer-nav {
  justify-content: flex-start;
}

.doc .footer-nav a {
  text-decoration: none;
}

@media (max-width: 480px) {
  .doc {
    padding: 28px 20px 24px;
  }
  .doc-header {
    margin-bottom: 28px;
  }
  .doc-section {
    margin-top: 32px;
  }
  .contact-card {
    padding: 18px;
  }
}
