:root {
    color-scheme: dark;
    --legal-bg: #06080d;
    --legal-surface: #0d111a;
    --legal-surface-soft: #111722;
    --legal-border: rgba(255, 255, 255, .11);
    --legal-text: #f5f6f8;
    --legal-muted: #b8beca;
    --legal-accent: #e60000;
    --legal-link: #ff9292;
    font-family: 'Outfit', 'Manrope', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--legal-text);
    background:
        radial-gradient(ellipse 70% 420px at 6% 0%, rgba(230, 0, 0, .14), transparent 70%),
        radial-gradient(ellipse 55% 360px at 100% 55%, rgba(73, 88, 115, .1), transparent 75%),
        var(--legal-bg);
    line-height: 1.7;
}

a { color: var(--legal-link); text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible, summary:focus-visible { outline: 2px solid #ff5454; outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 5; padding: 8px 12px; background: #fff; color: #080b12; }
.skip-link:focus { top: 12px; }
.legal-container { width: min(100% - 40px, 960px); margin-inline: auto; }

.legal-header {
    background: rgba(5, 7, 11, .94);
    border-bottom: 1px solid var(--legal-border);
}
.legal-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: 150px; height: auto; max-height: 62px; object-fit: contain; }
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    color: var(--legal-muted);
    background: #10141d;
    border: 1px solid var(--legal-border);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
}
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 29px; min-height: 29px; border-radius: 999px; color: #fff; text-decoration: none; }
.language-switch a[aria-current="page"] { background: var(--legal-accent); }
.language-switch a:not([aria-current="page"]):hover { background: #303640; }
.back-link { color: #f3f4f6; font-weight: 700; white-space: nowrap; text-decoration: none; }
.back-link:hover { color: var(--legal-link); }

.legal-main { padding-block: clamp(42px, 7vw, 76px) 90px; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: #ff7777;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 4px; height: 18px; flex: none; border-radius: 4px; background: var(--legal-accent); box-shadow: 0 0 14px rgba(230, 0, 0, .45); }
h1 {
    margin: 0 0 18px;
    font-size: clamp(2.15rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.035em;
    background: linear-gradient(110deg, #fff 30%, #ffb5b5 78%, #f04444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead { max-width: 70ch; margin: 0 0 12px; color: #d6dae2; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 1.05rem; }
.updated { margin: 0 0 36px; color: var(--legal-muted); font-size: .86rem; }

.legal-article {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 50px);
    background: linear-gradient(145deg, rgba(20, 25, 35, .98), var(--legal-surface) 58%);
    border: 1px solid var(--legal-border);
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .4),
                0 0 90px 4px rgba(230, 0, 0, .22);
}
.legal-article::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--legal-accent), rgba(230, 0, 0, .12) 60%, transparent); }
@media (hover: hover) and (pointer: fine) {
    .legal-article {
        transition: transform .6s cubic-bezier(.16, 1, .3, 1),
                    border-color .6s cubic-bezier(.16, 1, .3, 1),
                    box-shadow .6s cubic-bezier(.16, 1, .3, 1);
    }
    .legal-article:hover {
        transform: perspective(1500px) translateY(-10px) scale(1.005);
        border-color: rgba(255, 255, 255, .18);
        box-shadow: 0 45px 90px rgba(0, 0, 0, .65),
                    0 0 125px 24px rgba(230, 0, 0, .5),
                    0 0 42px 2px rgba(255, 0, 0, .42),
                    inset 0 1px 2px rgba(255, 255, 255, .2);
    }
}
.legal-article h2 { margin: 38px 0 12px; color: #fff; font-size: 1.25rem; font-weight: 800; line-height: 1.35; }
.legal-article h2:first-child { margin-top: 0; }
.legal-article p, .legal-article ul { color: #d3d7df; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: .95rem; line-height: 1.8; }
.legal-article p { margin: 0 0 18px; }
.legal-article ul { margin: 0 0 20px; padding-left: 24px; }
.legal-article li { margin: 8px 0; }
.legal-article strong { color: #fff; }

.related { padding-top: 38px; }
.related h2 { margin: 0 0 16px; color: #fff; font-size: 1.1rem; }
.related ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.related a { display: inline-block; padding: 11px 15px; color: #eef0f5; background: var(--legal-surface-soft); border: 1px solid var(--legal-border); border-radius: 12px; font-weight: 700; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.related a:hover { color: #fff; background: #1b202b; border-color: rgba(230, 0, 0, .65); transform: translateY(-2px); }

.legal-footer { background: #000; border-top: 1px solid var(--legal-border); }
.legal-footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; padding-block: 28px; font-size: .88rem; }
.legal-footer p { margin: 0; color: var(--legal-muted); }
.legal-footer-menu { min-width: 180px; }
.legal-footer-menu summary { color: #fff; cursor: pointer; font-weight: 700; }
.legal-footer-menu summary:hover { color: var(--legal-link); }
.legal-footer-menu nav { display: grid; gap: 7px; margin-top: 10px; }

@media (max-width: 600px) {
    .legal-container { width: min(100% - 32px, 960px); }
    .legal-header-inner { flex-wrap: wrap; gap: 4px; padding-block: 12px; }
    .brand img { width: 115px; }
    .legal-header-actions { width: 100%; justify-content: space-between; gap: 8px; }
    .back-link { font-size: .82rem; }
    .legal-main { padding-bottom: 64px; }
    .legal-article { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .legal-article { transition: none; }
    .legal-article:hover { transform: none; }
    .related a { transition: none; }
    .related a:hover { transform: none; }
}
