:root {
    --night: #020706;
    --night-soft: #07120f;
    --panel: #0a1713;
    --panel-strong: #0f2119;
    --gold: #d6ad47;
    --gold-bright: #f0d286;
    --ivory: #f6f0df;
    --mist: #b4bdb7;
    --line: rgba(214, 173, 71, 0.24);
    --soft-line: rgba(246, 240, 223, 0.1);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ivory);
    background:
        radial-gradient(circle at 12% 5%, rgba(26, 76, 51, 0.48), transparent 34rem),
        radial-gradient(circle at 92% 20%, rgba(120, 83, 22, 0.18), transparent 30rem),
        var(--night);
    font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.72;
}

a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.legal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(2, 7, 6, 0.88);
    border-bottom: 1px solid var(--soft-line);
    backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.back-link { color: var(--mist); text-decoration: none; font-size: 14px; }
.back-link:hover, .back-link:focus-visible { color: var(--gold-bright); }

.legal-hero { padding: 76px 0 38px; text-align: center; }
.eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    color: var(--gold-bright);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(214, 173, 71, 0.08);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.legal-hero h1 { max-width: 780px; margin: 20px auto 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 7vw, 70px); line-height: 1.02; letter-spacing: -0.04em; }
.legal-hero p { max-width: 720px; margin: 0 auto; color: var(--mist); font-size: 16px; }
.updated { display: block; margin-top: 18px; color: rgba(246, 240, 223, 0.58); font-size: 13px; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; }
.legal-nav a { padding: 10px 16px; color: var(--ivory); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); font-size: 13px; font-weight: 750; }
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--night); background: var(--gold); }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 34px; }
.summary-card { padding: 20px; border: 1px solid var(--soft-line); border-radius: 20px; background: rgba(10, 23, 19, 0.82); box-shadow: var(--shadow); }
.summary-card strong { display: block; margin-bottom: 5px; color: var(--gold-bright); font-size: 14px; }
.summary-card span { color: var(--mist); font-size: 13px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 72px; }
.toc { position: sticky; top: 100px; padding: 18px; border: 1px solid var(--soft-line); border-radius: 20px; background: rgba(10, 23, 19, 0.76); }
.toc strong { display: block; margin-bottom: 10px; color: var(--gold-bright); font-size: 13px; }
.toc a { display: block; padding: 7px 0; color: var(--mist); text-decoration: none; font-size: 13px; }
.toc a:hover, .toc a:focus-visible { color: var(--ivory); }
.legal-document { min-width: 0; }
.language-section { scroll-margin-top: 100px; padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgba(15, 33, 25, 0.94), rgba(5, 13, 10, 0.94)); box-shadow: var(--shadow); }
.language-section + .language-section { margin-top: 24px; }
.language-label { margin: 0 0 8px; color: var(--gold-bright); font-size: 12px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.language-section h2 { margin: 0 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
.language-section h3 { margin: 34px 0 12px; padding-bottom: 10px; color: var(--gold-bright); border-bottom: 1px solid var(--line); font-size: 19px; line-height: 1.35; }
.language-section p, .language-section li { color: #d1d8d3; }
.language-section ul { padding-left: 20px; }
.language-section li { margin: 9px 0; }
.language-section a { color: var(--gold-bright); text-underline-offset: 3px; }
.language-section a:hover, .language-section a:focus-visible { color: white; }
.notice { margin: 22px 0; padding: 17px 18px; color: #e5e9e6; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: rgba(214, 173, 71, 0.08); }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 !important; list-style: none; }
.service-list li { margin: 0; padding: 13px 14px; border: 1px solid var(--soft-line); border-radius: 13px; background: rgba(255, 255, 255, 0.025); }
.legal-footer { padding: 30px 0 42px; color: rgba(246, 240, 223, 0.56); border-top: 1px solid var(--soft-line); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--mist); text-decoration: none; }
.footer-links a:hover { color: var(--gold-bright); }

@media (max-width: 820px) {
    .summary-grid { grid-template-columns: 1fr; }
    .legal-layout { grid-template-columns: 1fr; }
    .toc { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
    .toc strong { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .shell { width: min(100% - 24px, 1120px); }
    .header-inner { min-height: 66px; }
    .brand img { width: 38px; height: 38px; }
    .back-link { font-size: 12px; }
    .legal-hero { padding-top: 54px; }
    .legal-hero h1 { font-size: 41px; }
    .legal-hero p { font-size: 14px; }
    .toc { grid-template-columns: 1fr; }
    .language-section { border-radius: 20px; }
    .service-list { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
}
@media print {
    body { color: #111; background: white; }
    .legal-header, .legal-nav, .toc, .legal-footer { display: none; }
    .legal-layout { display: block; }
    .language-section { color: #111; border: 0; box-shadow: none; background: white; page-break-after: always; }
    .language-section p, .language-section li { color: #222; }
}
