:root {
    color-scheme: dark;
    --legal-bg: #000805;
    --legal-panel: rgba(7, 24, 18, 0.78);
    --legal-line: rgba(114, 231, 184, 0.16);
    --legal-jade: #72e7b8;
    --legal-text: #f5f5f7;
    --legal-muted: rgba(245, 245, 247, 0.58);
}

* { box-sizing: border-box; }

html { background: var(--legal-bg); }

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 74% 16%, rgba(14, 117, 84, 0.22), transparent 31rem),
        radial-gradient(circle at 10% 68%, rgba(11, 73, 54, 0.18), transparent 29rem),
        linear-gradient(180deg, #000 0%, var(--legal-bg) 52%, #000 100%);
    color: var(--legal-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
    letter-spacing: 0;
}

a { color: inherit; }

.legal-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 80px;
    padding: 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(20px);
}

.legal-logo {
    width: max-content;
    color: var(--legal-text);
    font-size: 34px;
    font-weight: 780;
    text-decoration: none;
}

.legal-nav-links,
.legal-nav-actions,
.legal-footer-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.legal-nav-links a,
.legal-nav-actions a,
.legal-footer-links a {
    color: rgba(245, 245, 247, 0.62);
    font-size: 14px;
    text-decoration: none;
    transition: color 160ms ease;
}

.legal-nav-links a:hover,
.legal-nav-actions a:hover,
.legal-footer-links a:hover { color: #fff; }

.legal-nav-actions { justify-content: flex-end; }

.legal-nav-actions .legal-primary {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: #f5f5f7;
    color: #080808;
    font-weight: 650;
    line-height: 40px;
}

.legal-shell {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
    padding: 156px 0 96px;
}

.legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 72px;
    align-items: end;
    padding-bottom: 62px;
}

.legal-eyebrow {
    margin: 0 0 22px;
    color: var(--legal-jade);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.legal-title {
    max-width: 820px;
    margin: 0;
    font-size: clamp(46px, 6vw, 82px);
    font-weight: 560;
    line-height: 0.98;
    letter-spacing: 0;
}

.legal-intro {
    margin: 0;
    color: var(--legal-muted);
    font-size: 16px;
    font-weight: 350;
    line-height: 1.65;
}

.legal-date {
    display: block;
    margin-top: 18px;
    color: rgba(245, 245, 247, 0.38);
    font-size: 12px;
    font-weight: 550;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 64px;
    border-top: 1px solid var(--legal-line);
    padding-top: 54px;
}

.legal-index {
    position: sticky;
    top: 116px;
    align-self: start;
    display: grid;
    gap: 8px;
}

.legal-index a {
    border-left: 1px solid rgba(114, 231, 184, 0.18);
    padding: 8px 0 8px 16px;
    color: rgba(245, 245, 247, 0.48);
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}

.legal-index a:hover { color: var(--legal-jade); }

.legal-content { display: grid; gap: 16px; }

.legal-section,
.support-card {
    border: 1px solid var(--legal-line);
    border-radius: 8px;
    background:
        linear-gradient(140deg, rgba(114, 231, 184, 0.055), transparent 42%),
        var(--legal-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.legal-section { padding: 30px 32px 32px; }

.legal-section h2,
.support-card h2 {
    margin: 0 0 13px;
    color: rgba(245, 245, 247, 0.94);
    font-size: 22px;
    font-weight: 560;
    line-height: 1.2;
}

.legal-section p,
.legal-section li,
.support-card p {
    color: var(--legal-muted);
    font-size: 15px;
    font-weight: 350;
    line-height: 1.68;
}

.legal-section p { margin: 0; }
.legal-section p + p { margin-top: 14px; }
.legal-section ul { margin: 14px 0 0; padding-left: 19px; }
.legal-section li + li { margin-top: 7px; }

.legal-contact-link {
    color: var(--legal-jade);
    font-weight: 560;
    text-underline-offset: 4px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.support-card {
    min-height: 208px;
    padding: 28px;
}

.support-card-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 170px;
    gap: 32px;
}

.support-card p { margin: 0; }

.support-label {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--legal-jade);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 18px;
    background: #f5f5f7;
    color: #080808;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.legal-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 32px 0 42px;
    color: rgba(245, 245, 247, 0.34);
    font-size: 12px;
}

#vidlyLangSwitch {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.86);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
}

#vidlyLangSwitch button {
    min-width: 42px;
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(245, 245, 247, 0.5);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

#vidlyLangSwitch button.bg-white {
    background: #f5f5f7;
    color: #080808;
}

@media (max-width: 820px) {
    .legal-nav {
        grid-template-columns: 1fr auto;
        min-height: 68px;
        padding: 0 18px;
    }
    .legal-logo { font-size: 29px; }
    .legal-nav-links { display: none; }
    .legal-nav-actions a:first-child { display: none; }
    .legal-shell {
        width: min(100% - 32px, 680px);
        padding: 116px 0 64px;
    }
    .legal-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 42px;
    }
    .legal-title {
        font-size: clamp(42px, 14vw, 62px);
        line-height: 1;
    }
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 34px;
    }
    .legal-index {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .legal-section { padding: 24px 22px 26px; }
    .support-grid { grid-template-columns: 1fr; }
    .support-card-wide {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
    .legal-footer {
        flex-direction: column;
        width: calc(100% - 32px);
    }
    .legal-footer-links { flex-wrap: wrap; gap: 18px; }
    #vidlyLangSwitch {
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .legal-hero > *, .legal-section, .support-card {
        animation: legalReveal 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .legal-content > :nth-child(2), .support-grid > :nth-child(2) { animation-delay: 60ms; }
    .legal-content > :nth-child(3), .support-grid > :nth-child(3) { animation-delay: 120ms; }
    .legal-content > :nth-child(4), .support-grid > :nth-child(4) { animation-delay: 180ms; }
    @keyframes legalReveal {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
