/* Shared styles for the static legal pages (privacy.html, terms.html). */
:root {
    --navy: #1B2B5E;
    --navy-light: #2D4A9E;
    --gold: #F5A623;
    --gold-dark: #E8920F;
    --white: #FFFFFF;
    --surface: #F6F7FA;
    --text: #1A1A1A;
    --text-body: #3D3D3D;
    --text-muted: #5F5F5F;
    --border: #E3E6EE;
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a, button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--navy-light); outline-offset: 2px; border-radius: 4px; }

/* Header */
header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
header nav {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.nav-logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.nav-logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.nav-logo-text .dom { color: var(--navy); }
.nav-logo-text .vio { color: var(--gold-dark); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login {
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.nav-login:hover { text-decoration: underline; }
.nav-cta {
    background: var(--gold);
    color: var(--navy);
    padding: 0 18px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 200ms ease;
}
.nav-cta:hover { background: var(--gold-dark); }
.nav-cta:active { transform: translateY(1px); }

/* Content */
.content-section { padding: 128px 24px 96px; }
.content-wrapper { max-width: 760px; margin: 0 auto; }
.page-heading { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 8px; }
.page-subtext { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

.company-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 32px;
}
.company-box p:last-child { margin-bottom: 0; }

.toc { margin-bottom: 48px; }
.toc h2 { font-size: 16px !important; margin: 0 0 8px !important; color: var(--text) !important; }
.toc ol { padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { font-size: 15px; margin-bottom: 4px; break-inside: avoid; }

.content-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin: 48px 0 16px;
    line-height: 1.3;
}
.content-section h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.content-section p, .content-section li { font-size: 16px; color: var(--text-body); line-height: 1.75; }
.content-section p { margin-bottom: 16px; }
.content-section ul { padding-left: 22px; margin-bottom: 16px; }
.content-section ul li { margin-bottom: 8px; }
.content-section strong { color: var(--text); }
.content-section a { color: var(--navy-light); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.content-section a:hover { color: var(--navy); }
.contact-block { padding-left: 16px; border-left: 3px solid var(--gold); }

/* Purposes table: a table on wide screens, stacked rows on phones */
.table-wrap { margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-body); line-height: 1.55; }
th { background: var(--surface); color: var(--text); font-weight: 700; }
td:first-child { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
    .content-section { padding: 104px 16px 64px; }
    .page-heading { font-size: 30px; }
    .content-section h2 { font-size: 21px; margin-top: 40px; }
    .toc ol { columns: 1; }
    header nav { padding: 0 16px; }
    .nav-login { padding: 0 8px; }
    .nav-cta { padding: 0 14px; }
    thead { display: none; }
    table, tbody, tr, td { display: block; width: 100%; }
    tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; padding: 4px 0; }
    td { border-bottom: none; padding: 6px 14px; }
    td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); }
}

/* Footer */
footer { background: var(--navy); color: var(--white); padding: 56px 24px 32px; }
.footer-grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    margin-bottom: 12px;
    min-height: 44px;
}
.footer-logo .vio { color: var(--gold); }
.footer-description { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.7; max-width: 360px; }
.footer-col h2 {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}
.footer-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    color: var(--white);
    text-decoration: none;
}
.footer-col a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

@media (max-width: 640px) {
    footer { padding: 48px 16px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
}
