/* =====================================================================
   A2 Life — standalone legal documents (terms, disclaimer)

   These open in their own tab from the registration form and are
   reachable signed out, so they carry their own styles rather than
   loading the dashboard shell.
   ===================================================================== */

:root {
    --green-900: #063d1e;
    --green-700: #0b5d30;
    --green-600: #147b3f;
    --green-100: #e6f2ea;
    --green-50:  #f2f8f4;
    --gold-500:  #f0b41b;
    --danger:    #c62828;
    --ink:       #14251c;
    --muted:     #6b7f73;
    --line:      #e2eae5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f8f5;
    color: var(--ink);
    line-height: 1.75;
    padding: 28px 16px 48px;
    -webkit-text-size-adjust: 100%;
}

.doc-wrap {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(11, 93, 48, .08);
    padding: 34px 46px 40px;
}

.doc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.doc-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.doc-back:hover { background: #d8e9de; }

/* ── Translator ───────────────────────────────────────────────────── */

/* Centers the translator under the logo, its own row rather than
   sharing one with the "go back" link — it needs to stand out, not
   share billing with navigation. */
.doc-translate-row {
    display: flex;
    justify-content: center;
    margin: 0 0 22px;
}

/* Red on purpose: this is the one control on the page that is not
   green-branded chrome, so it reads as a distinct, noticeable option
   rather than blending into the rest of the header. Same red already
   used for errors/attention elsewhere (.alert-error, --danger). */
.doc-translate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 14px;
    border: 1.5px solid var(--danger);
    border-radius: 999px;
    background: #fdf0f0;
}
.doc-translate i { color: var(--danger); font-size: 15px; }

.doc-translate select {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--danger);
    cursor: pointer;
}
.doc-translate select:focus { outline: 2px solid var(--danger); outline-offset: 2px; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Google injects a banner and shifts the page down; suppress it, since
   the selector above already tells the reader what language they chose. */
.goog-te-banner-frame,
.skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
#googleTranslateHost { display: none; }

/* ── Header ───────────────────────────────────────────────────────── */

.doc-logo { text-align: center; margin-bottom: 18px; }
.doc-logo img { width: 100%; max-width: 168px; height: auto; }

h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-900);
    text-align: center;
    letter-spacing: -.01em;
}

.doc-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 4px;
}

.doc-notice {
    display: flex;
    gap: 11px;
    margin-top: 22px;
    padding: 13px 16px;
    border-left: 4px solid var(--gold-500);
    border-radius: 8px;
    background: #fdf6e3;
    font-size: 13.2px;
    line-height: 1.6;
}
.doc-notice i { color: #b7791f; margin-top: 3px; }

.doc-divider {
    border: 0;
    border-top: 2px solid var(--green-100);
    margin: 24px 0;
}

/* ── Body ─────────────────────────────────────────────────────────── */

.doc-body h2 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--green-700);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 28px 0 8px;
}
.doc-body h2:first-child { margin-top: 0; }

.doc-body h3 {
    font-size: .95rem;
    font-weight: 700;
    margin: 18px 0 6px;
}

.doc-body p { margin-bottom: 12px; font-size: .93rem; }
.doc-body ol,
.doc-body ul { padding-left: 22px; margin-bottom: 12px; }
.doc-body li { margin-bottom: 7px; font-size: .93rem; }

.doc-lead {
    font-size: .97rem;
    color: #2c3f34;
}

/* The signed declaration, set apart from the clauses around it. */
.doc-declaration {
    background: var(--green-50);
    border-left: 4px solid var(--green-600);
    border-radius: 6px;
    padding: 14px 18px;
    font-style: italic;
    font-size: .92rem;
    margin: 14px 0;
}

/* Numbered points in the disclaimer. */
.doc-points { list-style: none; padding-left: 0; counter-reset: pt; }
.doc-points li {
    position: relative;
    counter-increment: pt;
    padding-left: 42px;
    margin-bottom: 14px;
}
.doc-points li::before {
    content: counter(pt);
    position: absolute;
    left: 0; top: 1px;
    width: 27px; height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-700);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
}

.doc-foot {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.7;
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 640px) {
    body { padding: 16px 12px 36px; }
    .doc-wrap { padding: 22px 18px 28px; border-radius: 12px; }
    h1 { font-size: 1.28rem; }
    .doc-points li { padding-left: 36px; }
    .doc-points li::before { width: 24px; height: 24px; font-size: 11.5px; }
}

@media print {
    body { background: #fff; padding: 0; }
    .doc-wrap { box-shadow: none; border: 0; max-width: none; padding: 0; }
    .doc-top { display: none; }
}
