:root {
    --bg-primary: #0a0e14;
    --bg-secondary: #111820;
    --bg-card: #161d27;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --text-primary: #f1f5f9;
    --text-secondary: #a8b6c8;
    --text-muted: #718096;
    --border-color: rgba(148, 163, 184, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

.legal-shell {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 90px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible { color: var(--text-primary); }

.legal-header {
    padding-bottom: 34px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--border-color);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(2.25rem, 7vw, 3.7rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.last-updated {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.summary-box,
.notice-box {
    margin: 28px 0;
    padding: 22px 24px;
    border: 1px solid rgba(59, 130, 246, 0.26);
    border-left: 3px solid var(--accent-blue);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.05));
}

.notice-box.warning {
    border-color: rgba(245, 158, 11, 0.3);
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
}

.summary-box p:last-child,
.notice-box p:last-child,
.summary-box ul:last-child,
.notice-box ul:last-child { margin-bottom: 0; }

h2 {
    margin: 48px 0 14px;
    color: var(--accent-cyan);
    font-size: 1.35rem;
    line-height: 1.3;
}

h3 {
    margin: 28px 0 10px;
    font-size: 1.05rem;
}

p,
li,
td { color: var(--text-secondary); }
p { margin: 0 0 16px; }
ul { margin: 0 0 18px; padding-left: 24px; }
li { margin-bottom: 8px; }
strong { color: var(--text-primary); }

a {
    color: #67e8f9;
    text-underline-offset: 3px;
}

a:hover,
a:focus-visible { color: #bfdbfe; }

table {
    width: 100%;
    margin: 22px 0 30px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

th,
td {
    padding: 13px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 650;
}

.table-wrap { overflow-x: auto; }

.contact-card {
    display: grid;
    gap: 5px;
    margin: 18px 0 28px;
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
}

.contact-card p { margin: 0; }

.legal-footer {
    margin-top: 58px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .legal-shell { width: min(100% - 28px, 900px); padding-top: 34px; }
    th, td { min-width: 170px; padding: 11px 12px; }
}

@media print {
    body { background: white; color: black; }
    .legal-shell { width: 100%; padding: 0; }
    .back-link { display: none; }
    p, li, td, .last-updated, .legal-footer { color: #222; }
    h2, a { color: #074b83; }
}
