/* Support + legal doc surfaces (kids.calmtopia.com) */
.page-doc {
  background: #f8fafc;
  min-height: 100vh;
}

.doc-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

.doc-hero {
  padding: 8px 0 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(12, 16, 40, 0.08);
}

.doc-hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 16, 40, 0.55);
  margin: 0 0 10px;
}

.doc-hero__h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 12px;
}

.doc-hero__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(12, 16, 40, 0.72);
}

.doc-meta {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.55);
}

.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
}

.doc-toc a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.1);
  box-shadow: 0 6px 18px rgba(31, 35, 82, 0.06);
}

.doc-toc a:hover,
.doc-toc a:focus-visible {
  border-color: rgba(139, 174, 255, 0.55);
  color: #1e3a8a;
}

.support-quickgrid {
  display: grid;
  gap: 14px;
  margin: 28px 0 36px;
}
@media (min-width: 640px) {
  .support-quickgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.support-card {
  border-radius: 18px;
  padding: 18px 18px 20px;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.08);
  box-shadow: 0 14px 40px rgba(12, 16, 40, 0.06);
}

.support-card h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

.support-card p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(12, 16, 40, 0.68);
}

.support-card__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-section {
  margin-top: 40px;
  padding-top: 8px;
}

.doc-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--ink);
}

.doc-section h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 22px 0 8px;
  color: var(--ink);
}

.doc-section p,
.doc-section li {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(12, 16, 40, 0.72);
}

.doc-section ul,
.doc-section ol {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

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

.doc-callout {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 197, 138, 0.22), rgba(139, 174, 255, 0.18));
  border: 1px solid rgba(12, 16, 40, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(12, 16, 40, 0.78);
}

.doc-callout strong {
  color: var(--ink);
}

.doc-steps {
  counter-reset: docstep;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.doc-steps > li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
}

.doc-steps > li::before {
  counter-increment: docstep;
  content: counter(docstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.1);
  color: var(--dawn-deep);
}

/* FAQ on support page — mirrors hiw-faq tokens */
.doc-faq {
  padding: 8px 0 0;
  margin-top: 36px;
}

.doc-faq__inner {
  max-width: 720px;
  margin: 0 auto;
}

.doc-faq details {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(12, 16, 40, 0.08);
  margin-bottom: 10px;
  padding: 4px 14px;
  box-shadow: 0 8px 24px rgba(31, 35, 82, 0.05);
}

.doc-faq summary {
  font-weight: 800;
  cursor: pointer;
  padding: 12px 4px;
  list-style: none;
  color: var(--ink);
}

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

.doc-faq details[open] summary {
  color: var(--dawn-deep);
}

.doc-faq__a {
  padding: 0 4px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(12, 16, 40, 0.68);
  line-height: 1.55;
}

.doc-footer-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(12, 16, 40, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
}

.doc-footer-links a {
  color: var(--peach);
  text-decoration: none;
}

.doc-footer-links a:hover,
.doc-footer-links a:focus-visible {
  text-decoration: underline;
}

/* Privacy long-form */
.privacy-prose {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(12, 16, 40, 0.08);
  padding: 28px 22px 32px;
  box-shadow: 0 18px 48px rgba(12, 16, 40, 0.06);
}

.privacy-prose h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 28px 0 10px;
  color: var(--ink);
}

.privacy-prose h2:first-child {
  margin-top: 0;
}

.privacy-prose h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 20px 0 8px;
  color: var(--ink);
}

.privacy-prose p,
.privacy-prose li {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.62;
  color: rgba(12, 16, 40, 0.72);
}

.privacy-prose ul {
  margin: 8px 0 12px;
  padding-left: 1.2rem;
}

.privacy-prose li + li {
  margin-top: 6px;
}

.privacy-prose a {
  color: #1d4ed8;
  font-weight: 700;
}

.privacy-prose a:hover,
.privacy-prose a:focus-visible {
  text-decoration: underline;
}
