/* ==========================================================================
   SmileCare — Legal / Document page styles
   Reuses brand tokens from landing-page.css (:root variables).
   Designed for: trial.html, privacy-policy.html, terms.html
   ========================================================================== */

/* ---- Document hero (slim band under nav) ---- */
.doc-hero {
    background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-700) 55%, var(--teal-800) 100%);
    color: #fff;
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
}
.doc-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,0.10), rgba(255,255,255,0) 70%);
    border-radius: 50%;
}
.doc-hero .container { position: relative; z-index: 1; max-width: 760px; }
.doc-hero .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.18);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}
.doc-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}
.doc-hero .updated {
    font-size: 0.95rem;
    opacity: 0.92;
    margin: 0;
}
.doc-hero .lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.94);
    margin: 18px 0 0;
    max-width: 620px;
}

/* ---- Document body (centered reading column) ---- */
.doc-body {
    padding: 56px 0 72px;
    background: #fff;
}
.doc-wrap {
    max-width: 820px;
    margin: 0 auto;
}

/* "On this page" jump nav */
.doc-toc {
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-left: 4px solid var(--teal-600);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 0 40px;
}
.doc-toc h2 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin: 0 0 12px;
}
.doc-toc ol {
    columns: 2;
    column-gap: 28px;
    margin: 0;
    padding-left: 18px;
    counter-reset: tocitem;
}
.doc-toc li {
    break-inside: avoid;
    margin: 0 0 6px;
    font-size: 0.92rem;
    line-height: 1.4;
}
.doc-toc a { color: var(--slate-600); text-decoration: none; font-weight: 500; }
.doc-toc a:hover { color: var(--teal-700); text-decoration: underline; }

/* ---- Typography for legal content ---- */
.doc-wrap h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 44px 0 14px;
    padding-top: 12px;
    border-top: 1px solid var(--slate-100);
    letter-spacing: -0.01em;
    scroll-margin-top: 90px;
}
.doc-wrap h2:first-of-type { border-top: none; padding-top: 0; }
.doc-wrap h2 .num {
    color: var(--teal-600);
    margin-right: 8px;
}
.doc-wrap h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--slate-800);
    margin: 26px 0 10px;
}
.doc-wrap p {
    font-size: 1.0rem;
    line-height: 1.72;
    color: var(--slate-700);
    margin: 0 0 16px;
}
.doc-wrap ul, .doc-wrap ol {
    margin: 0 0 18px;
    padding-left: 22px;
}
.doc-wrap li {
    font-size: 1.0rem;
    line-height: 1.7;
    color: var(--slate-700);
    margin: 0 0 8px;
}
.doc-wrap li::marker { color: var(--teal-600); font-weight: 700; }
.doc-wrap strong { color: var(--slate-900); font-weight: 700; }
.doc-wrap a { color: var(--teal-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.doc-wrap a:hover { color: var(--teal-800); }
.doc-wrap em { font-style: italic; color: var(--slate-600); }

/* Callout / highlight box */
.callout {
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 24px 0;
}
.callout strong { color: var(--teal-800); }

/* Warning / important callout (amber) */
.callout.important {
    background: #fffbeb;
    border-color: #fde68a;
    border-left: 4px solid #f59e0b;
}
.callout.important strong { color: #b45309; }

/* Big inline CTA inside the doc (trial page) */
.doc-cta-inline {
    margin: 32px 0 8px;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--teal-50), #fff);
    border: 1px solid var(--teal-100);
    border-radius: 14px;
    text-align: center;
}
.doc-cta-inline p { margin: 0 0 14px; font-size: 1.05rem; color: var(--slate-700); }
.doc-cta-inline .btn { margin: 0 6px; }

/* Contact block at the end of legal pages */
.doc-contact {
    margin-top: 48px;
    padding: 28px 32px;
    background: var(--slate-50);
    border-radius: 14px;
    border: 1px solid var(--slate-100);
}
.doc-contact h2 { border-top: none; padding-top: 0; margin-top: 0; }
.doc-contact a { font-size: 1.05rem; }
.doc-contact p:last-child { margin-bottom: 0; }

/* Trial highlight banner (top of trial page) */
.trial-banner {
    margin: 0 0 32px;
    padding: 22px 26px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    text-align: center;
}
.trial-banner .big {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--teal-800);
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}
.trial-banner .sub {
    font-size: 1.0rem;
    color: var(--slate-600);
    margin: 0;
}

/* Stats band reuse (lighter, legal pages) */
.doc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 40px 0;
}
.doc-stat {
    text-align: center;
    padding: 22px 12px;
    background: var(--slate-50);
    border-radius: 12px;
    border: 1px solid var(--slate-100);
}
.doc-stat .num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--teal-600);
    line-height: 1;
    margin-bottom: 6px;
}
.doc-stat .label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Final CTA band on legal pages */
.cta-band {
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-800) 100%);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.2rem); border-top: none; padding-top: 0; margin: 0 0 12px; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,0.92); font-size: 1.1rem; margin: 0 0 26px; }
.cta-band .btn { margin: 0 8px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .doc-toc ol { columns: 1; }
    .doc-stats { grid-template-columns: repeat(2, 1fr); }
    .cta-band .btn { display: block; margin: 0 auto 12px; width: 100%; max-width: 320px; }
    .cta-band .btn:last-child { margin-bottom: 0; }
    .doc-cta-inline .btn { display: block; margin: 0 auto 10px; width: 100%; max-width: 320px; }
    .doc-cta-inline .btn:last-child { margin-bottom: 0; }
}
