/* ========================================================================
   Anna – Shared styles for About / Contact / Legal pages
   Matches the warm-toned Anna brand from the landing page.
   ======================================================================== */

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --anna-warm: #FFC8A2;
    --anna-glow: #FF9E6C;
    --anna-soft: #FFE3D0;
    --anna-accent: #B388FF;
    --anna-blue: #82B1FF;
    --bg-deep: #08090E;
    --bg-mid: #0E1018;
    --bg-card: #12141C;
    --bg-card-hover: #181A24;
    --border-subtle: rgba(255, 200, 162, 0.08);
    --border-warm: rgba(255, 200, 162, 0.15);
    --text-primary: #E8E6E3;
    --text-secondary: #8A8F98;
    --text-tertiary: #5A5E66;
    --link-color: #FFC8A2;
    --link-hover: #FF9E6C;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --anna-warm: #E07A3A;
    --anna-glow: #D4622A;
    --anna-soft: #F0A070;
    --anna-accent: #7C4DFF;
    --anna-blue: #448AFF;
    --bg-deep: #F5F5F7;
    --bg-mid: #EEEEF0;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAFAFA;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-warm: rgba(224, 122, 58, 0.18);
    --text-primary: #1A1A2E;
    --text-secondary: #6B7084;
    --text-tertiary: #9DA2AE;
    --link-color: #D4622A;
    --link-hover: #E07A3A;
    color-scheme: light;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--link-color); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link-hover); }

/* ── Top Navigation Bar ─────────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 60px);
    height: 64px;
    background: rgba(8, 9, 14, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

:root[data-theme="light"] .site-nav {
    background: rgba(245, 245, 247, 0.88);
}

.site-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.site-nav__brand img { width: 32px; height: 32px; }

/* Theme-aware logo switching */
.logo-dark { display: inline; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: inline; }

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.site-nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    transition: color .2s;
}

.site-nav__links a:hover,
.site-nav__links a.active {
    color: var(--anna-warm);
}

/* Nav mobile hamburger */
.nav-toggle { display: none; background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 22px; padding: 4px; }

@media (max-width: 640px) {
    .nav-toggle { display: block; }
    .site-nav__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-mid);
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px 24px;
        gap: 16px;
    }
    .site-nav__links.open { display: flex; }
}

/* ── Theme Toggle (top-right pill) ──────────────────────────────────── */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    color: var(--text-secondary);
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
}
.theme-toggle:hover { border-color: var(--border-warm); color: var(--anna-warm); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { position: absolute; transition: opacity .3s, transform .3s; }
.theme-toggle .icon-sun { opacity: 1; transform: rotate(0); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg); }
:root[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg); }
:root[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0); }

/* ── Page Container ────────────────────────────────────────────────── */
.page-container {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px clamp(20px, 4vw, 40px) 80px;
}

.page-container--wide { max-width: 960px; }

/* ── Page Header ───────────────────────────────────────────────────── */
.page-header {
    margin-bottom: 48px;
}

.page-header__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--anna-warm);
    margin-bottom: 12px;
}

.page-header__title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--anna-soft) 0%, var(--anna-warm) 50%, var(--anna-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

:root[data-theme="light"] .page-header__title {
    background: linear-gradient(135deg, #D4622A 0%, #E07A3A 50%, #F0A070 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header__subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* ── Info Cards (About / Contact) ──────────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.info-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    transition: border-color .25s, background .25s;
}

.info-card:hover {
    border-color: var(--border-warm);
    background: var(--bg-card-hover);
}

.info-card__icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.info-card__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.info-card__value {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.65;
}

.info-card__value a {
    word-break: break-all;
}

/* ── Legal Card Grid ───────────────────────────────────────────────── */
.legal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.legal-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    transition: border-color .25s, transform .2s, background .25s;
    text-decoration: none;
    color: inherit;
    min-height: 180px;
}

.legal-card:hover {
    border-color: var(--border-warm);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    color: inherit;
}

.legal-card__icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.legal-card__title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.legal-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.legal-card__arrow {
    margin-top: 16px;
    font-size: 14px;
    color: var(--anna-warm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Legal Document Prose ──────────────────────────────────────────── */
.legal-prose {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-prose h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 48px 0 20px;
    letter-spacing: -0.3px;
}

.legal-prose h1:first-child { margin-top: 0; }

.legal-prose h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 36px 0 14px;
}

.legal-prose h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 10px;
}

.legal-prose p {
    margin-bottom: 16px;
}

.legal-prose ul, .legal-prose ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-prose li {
    margin-bottom: 8px;
}

.legal-prose strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-prose em {
    font-style: italic;
}

.legal-prose a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-prose .last-updated {
    display: inline-block;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    padding: 6px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
}

.legal-prose .legal-warning {
    padding: 16px 20px;
    background: rgba(255, 158, 108, 0.06);
    border-left: 3px solid var(--anna-glow);
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-size: 14px;
    color: var(--text-primary);
}

:root[data-theme="light"] .legal-prose .legal-warning {
    background: rgba(224, 122, 58, 0.06);
}

/* ── Back link ──────────────────────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    transition: color .2s;
}
.back-link:hover { color: var(--anna-warm); }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 48px clamp(20px, 4vw, 60px) 32px;
    background: var(--bg-mid);
}

.site-footer__inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__brand-name {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.site-footer__brand-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
    max-width: 240px;
}

.site-footer__col-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.site-footer__col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__col-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

.site-footer__col-links a:hover { color: var(--anna-warm); }

.site-footer__bottom {
    max-width: 960px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-tertiary);
}

@media (max-width: 640px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
    .site-footer__brand { grid-column: 1 / -1; }
    .site-footer__bottom { flex-direction: column; gap: 8px; }
}

/* ── Utility ──────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
