:root {
    color-scheme: dark;
    --legal-bg: #030b15;
    --legal-surface: rgba(8, 24, 42, .84);
    --legal-surface-soft: rgba(13, 39, 65, .68);
    --legal-text: #f5f8ff;
    --legal-muted: #a6b7ce;
    --legal-border: rgba(122, 175, 221, .2);
    --legal-accent: #09d9ef;
    --legal-violet: #8c7bff;
    --legal-green: #48e68b;
    --legal-shadow: 0 24px 70px rgba(0, 0, 0, .33);
}

* { box-sizing: border-box; }
html { background: var(--legal-bg); scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 11% -5%, rgba(44, 99, 205, .34), transparent 28rem),
        radial-gradient(circle at 95% 18%, rgba(6, 191, 198, .13), transparent 27rem),
        linear-gradient(180deg, #04101d 0%, var(--legal-bg) 54%, #020811 100%);
    color: var(--legal-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}
body::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    content: "";
    opacity: .22;
    background-image: linear-gradient(rgba(72, 154, 209, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(72, 154, 209, .2) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
}
a { color: var(--legal-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--legal-accent);
    outline-offset: 3px;
}
.legal-ambient { position: fixed; z-index: -1; inset: 0; pointer-events: none; overflow: hidden; }
.legal-ambient span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--legal-accent); box-shadow: 0 0 14px var(--legal-accent); opacity: .58; animation: legal-rise 11s linear infinite; }
.legal-ambient span:nth-child(1) { left: 16%; bottom: 6%; animation-delay: -1s; }
.legal-ambient span:nth-child(2) { left: 69%; bottom: 18%; animation-duration: 14s; animation-delay: -7s; background: var(--legal-violet); box-shadow: 0 0 14px var(--legal-violet); }
.legal-ambient span:nth-child(3) { left: 88%; bottom: 4%; animation-duration: 12s; animation-delay: -4s; background: var(--legal-green); box-shadow: 0 0 14px var(--legal-green); }

.legal-header { position: relative; z-index: 3; border-bottom: 1px solid rgba(145, 190, 232, .14); background: rgba(3, 11, 21, .56); backdrop-filter: blur(18px); }
.legal-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 1240px; margin: 0 auto; padding: 18px 30px; }
.legal-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--legal-text); text-decoration: none; }
.legal-brand-mark { position: relative; display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border: 1px solid rgba(9, 217, 239, .75); border-radius: 12px; background: linear-gradient(145deg, rgba(9, 217, 239, .25), rgba(140, 123, 255, .18)); box-shadow: inset 0 0 20px rgba(9, 217, 239, .14), 0 0 30px rgba(9, 217, 239, .12); }
.legal-brand-mark i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--legal-accent); transform: rotate(45deg); }
.legal-brand-mark i:nth-child(1) { transform: translate(-7px, -7px) rotate(45deg); }
.legal-brand-mark i:nth-child(2) { transform: translate(7px, 7px) rotate(45deg); background: var(--legal-violet); }
.legal-brand-mark i:nth-child(3) { transform: rotate(45deg); background: var(--legal-green); }
.legal-brand-copy { display: grid; line-height: 1.1; }
.legal-brand-copy strong { font-size: 15px; letter-spacing: -.02em; }
.legal-brand-copy small { margin-top: 4px; color: var(--legal-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.legal-nav a { padding: 8px 10px; border-radius: 999px; color: #c7d5e7; font-size: 13px; font-weight: 700; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.legal-nav a:hover { color: var(--legal-text); background: rgba(38, 94, 143, .26); }

.legal-main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 78px 0 96px; }
.legal-heading { position: relative; padding: 34px 0 50px; border-bottom: 1px solid var(--legal-border); }
.legal-heading::after { position: absolute; right: 0; bottom: -1px; width: min(210px, 26%); height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--legal-accent), var(--legal-violet)); }
.legal-eyebrow, .trust-kicker, .legal-footer-kicker { margin: 0; color: var(--legal-accent); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.legal-heading h1 { max-width: 820px; margin: 13px 0; font-size: clamp(44px, 6vw, 78px); line-height: .98; letter-spacing: -.065em; text-wrap: balance; }
.legal-heading h1::first-letter { color: #fff; }
.legal-heading > p:not(.legal-eyebrow) { max-width: 690px; margin: 0; color: var(--legal-muted); font-size: clamp(17px, 2vw, 20px); }
.legal-heading-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 24px; color: #8195ae; font-size: 12px; font-weight: 650; }
.legal-heading-meta span:first-child { color: #cae2f3; }
.legal-heading-meta i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--legal-green); box-shadow: 0 0 12px var(--legal-green); }

.legal-content { padding-top: 34px; }
.legal-content > section:not(.trust-hero):not(.trust-map):not(.trust-topic-intro):not(.cookie-grid) { padding: 34px 0; border-bottom: 1px solid var(--legal-border); }
.legal-content h2 { margin: 0 0 12px; font-size: clamp(21px, 3vw, 28px); line-height: 1.16; letter-spacing: -.035em; }
.legal-content p { margin: 0; color: #c4d3e4; }
.legal-content p + p { margin-top: 12px; }
.legal-content strong { color: var(--legal-text); }
.legal-content section:not(.trust-hero):not(.trust-map):not(.trust-topic-intro):not(.cookie-grid) > h2 { color: var(--legal-text); }

.trust-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); gap: 30px; align-items: center; min-height: 330px; padding: clamp(28px, 5vw, 58px); overflow: hidden; border: 1px solid rgba(30, 199, 239, .3); border-radius: 28px; background: linear-gradient(125deg, rgba(10, 41, 68, .92), rgba(6, 20, 38, .9)); box-shadow: var(--legal-shadow), inset 0 1px 0 rgba(255, 255, 255, .06); }
.trust-hero::before { position: absolute; width: 340px; height: 340px; content: ""; border: 1px solid rgba(9, 217, 239, .14); border-radius: 50%; transform: translate(-25%, -25%); }
.trust-hero-copy { position: relative; z-index: 1; }
.trust-hero h2 { max-width: 590px; margin-top: 12px; font-size: clamp(31px, 4.6vw, 58px); letter-spacing: -.06em; }
.trust-hero p:not(.trust-kicker) { max-width: 575px; color: #b7cade; font-size: 16px; }
.trust-signal { position: relative; display: grid; place-items: center; width: min(250px, 80vw); aspect-ratio: 1; justify-self: center; border: 1px solid rgba(9, 217, 239, .38); border-radius: 50%; background: radial-gradient(circle, rgba(10, 210, 237, .23), rgba(14, 36, 59, .24) 45%, transparent 70%); }
.trust-signal::before, .trust-signal::after { position: absolute; content: ""; border: 1px solid rgba(9, 217, 239, .25); border-radius: 50%; animation: trust-pulse 4s ease-in-out infinite; }
.trust-signal::before { inset: 24px; }
.trust-signal::after { inset: -20px; animation-delay: -2s; }
.trust-signal > span:not(.trust-signal-core) { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--legal-accent); box-shadow: 0 0 16px var(--legal-accent); }
.trust-signal > span:nth-of-type(2) { top: 12%; left: 50%; }
.trust-signal > span:nth-of-type(3) { right: 5%; bottom: 30%; background: var(--legal-violet); box-shadow: 0 0 16px var(--legal-violet); }
.trust-signal > span:nth-of-type(4) { bottom: 9%; left: 22%; background: var(--legal-green); box-shadow: 0 0 16px var(--legal-green); }
.trust-signal-core { position: relative; z-index: 2; display: grid; width: 78px; height: 78px; place-items: center; border: 1px solid var(--legal-accent); border-radius: 22px; background: linear-gradient(145deg, rgba(9, 217, 239, .42), rgba(65, 77, 181, .44)); box-shadow: 0 0 34px rgba(9, 217, 239, .32); color: white; font-size: 30px; font-weight: 800; }
.trust-signal p { position: absolute; bottom: 28px; margin: 0; color: #d9f8ff; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.trust-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 0 40px; }
.trust-card { position: relative; min-height: 190px; padding: 22px; overflow: hidden; border: 1px solid var(--legal-border); border-radius: 18px; background: linear-gradient(145deg, rgba(12, 32, 54, .82), rgba(5, 15, 28, .78)); color: var(--legal-text); text-decoration: none; transition: transform .28s ease, border-color .28s ease, background .28s ease; }
.trust-card::after { position: absolute; right: -35px; bottom: -40px; width: 120px; height: 120px; content: ""; border: 1px solid rgba(9, 217, 239, .16); border-radius: 50%; }
.trust-card:hover { border-color: rgba(9, 217, 239, .72); background: linear-gradient(145deg, rgba(12, 62, 93, .92), rgba(12, 21, 50, .92)); transform: translateY(-5px); }
.trust-card-primary { border-color: rgba(9, 217, 239, .55); box-shadow: inset 0 0 35px rgba(9, 217, 239, .08); }
.trust-card-index { color: var(--legal-accent); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.trust-card h2 { margin: 25px 0 8px; font-size: 20px; }
.trust-card p { color: var(--legal-muted); font-size: 13px; line-height: 1.5; }
.trust-card-arrow { position: absolute; right: 18px; bottom: 14px; color: var(--legal-accent); font-size: 20px; }

.trust-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.trust-detail > p { max-width: 820px; font-size: 17px; }
.trust-detail-split { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 50px; align-items: start; }
.trust-detail-split h2 { margin-top: 10px; }
.trust-disclosure { padding: 32px !important; border: 1px solid rgba(140, 123, 255, .34) !important; border-radius: 20px; background: linear-gradient(120deg, rgba(31, 26, 67, .62), rgba(10, 25, 42, .7)); }
.trust-disclosure h2 { margin-top: 10px; }

.trust-topic-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 42px; padding: clamp(25px, 4vw, 46px); margin-bottom: 18px; border: 1px solid rgba(9, 217, 239, .25); border-radius: 24px; background: linear-gradient(130deg, rgba(9, 47, 70, .6), rgba(10, 18, 40, .76)); }
.trust-topic-intro h2 { margin-top: 12px; font-size: clamp(28px, 4vw, 46px); }
.trust-topic-intro > div:last-child { align-self: center; }
.trust-topic-intro .legal-button { margin-top: 22px; }
.trust-topic-intro-compact { align-items: center; }
.trust-topic-intro-compact > p { font-size: 17px; }
.cookie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; }
.cookie-card { min-height: 175px; padding: 22px; border: 1px solid var(--legal-border); border-radius: 18px; background: rgba(8, 26, 43, .75); }
.cookie-card span { color: var(--legal-accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.cookie-card h2 { margin: 23px 0 7px; font-size: 20px; }
.cookie-card p { color: var(--legal-muted); font-size: 14px; line-height: 1.5; }

.legal-table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid var(--legal-border); text-align: left; }
th { color: var(--legal-muted); font-size: 13px; text-transform: uppercase; }
.legal-cta, .legal-result, .legal-form { margin-top: 28px; padding: 28px !important; border: 1px solid var(--legal-border) !important; border-radius: 16px; background: var(--legal-surface); }
.legal-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 46px; border: 1px solid rgba(9, 217, 239, .45); border-radius: 11px; padding: 0 18px; background: linear-gradient(135deg, #12aee7, #16d8e9); color: #03111b; font: inherit; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.legal-button:hover { box-shadow: 0 12px 24px rgba(9, 217, 239, .24); transform: translateY(-2px); }
.legal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.legal-field { margin-bottom: 18px; }
.legal-field label { display: block; margin-bottom: 7px; color: var(--legal-muted); font-size: 14px; }
.legal-field input, .legal-field textarea { width: 100%; min-height: 46px; border: 1px solid var(--legal-border); border-radius: 10px; padding: 10px 12px; background: #071522; color: var(--legal-text); font: inherit; }
.legal-field textarea { min-height: 120px; resize: vertical; }
.legal-field input:focus, .legal-field textarea:focus { outline: 2px solid var(--legal-accent); border-color: var(--legal-accent); }
.errorlist, .legal-errors { margin: 7px 0; color: #ff9f9f; font-size: 14px; }
.legal-form-note { color: var(--legal-muted) !important; font-size: 13px; }
.legal-result { text-align: center; }
.legal-result-icon { display: grid; place-items: center; width: 52px; aspect-ratio: 1; margin: 0 auto 14px; border-radius: 50%; background: var(--legal-accent); color: #06110f; font-size: 26px; }
.legal-code { display: block; margin: 12px auto 20px; color: var(--legal-accent); font-size: clamp(18px, 4vw, 28px); overflow-wrap: anywhere; }

.legal-footer { border-top: 1px solid var(--legal-border); background: rgba(2, 8, 17, .72); }
.legal-footer-top, .legal-footer-bottom { display: flex; justify-content: space-between; gap: 40px; width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.legal-footer-top { padding: 48px 0 32px; }
.legal-footer-top > div:first-child { max-width: 370px; }
.legal-footer-top p:not(.legal-footer-kicker) { margin: 8px 0 0; color: var(--legal-muted); font-size: 14px; }
.legal-footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 10px 18px; max-width: 600px; }
.legal-footer a { color: #afc4d9; font-size: 13px; text-decoration: none; }
.legal-footer a:hover { color: var(--legal-accent); }
.legal-footer-bottom { padding: 18px 0 28px; border-top: 1px solid var(--legal-border); color: #8096ad; font-size: 12px; }

@keyframes legal-rise { 0% { transform: translateY(0); opacity: 0; } 18% { opacity: .56; } 84% { opacity: .22; } 100% { transform: translateY(-520px); opacity: 0; } }
@keyframes trust-pulse { 50% { transform: scale(1.07); opacity: .58; } }

@media (max-width: 880px) {
    .legal-header-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
    .legal-nav { justify-content: flex-start; }
    .trust-map { grid-template-columns: repeat(2, 1fr); }
    .trust-detail-split, .trust-topic-intro { grid-template-columns: 1fr; gap: 22px; }
    .legal-footer-top { flex-direction: column; gap: 25px; }
    .legal-footer-links { justify-content: flex-start; }
}
@media (max-width: 620px) {
    .legal-header-inner { padding: 16px 20px; }
    .legal-main, .legal-footer-top, .legal-footer-bottom { width: min(100% - 36px, 1160px); }
    .legal-main { padding: 48px 0 64px; }
    .legal-heading h1 { font-size: clamp(40px, 12vw, 58px); }
    .legal-heading-meta { display: grid; gap: 6px; }
    .trust-hero { grid-template-columns: 1fr; border-radius: 20px; }
    .trust-signal { width: 200px; }
    .trust-map, .cookie-grid { grid-template-columns: 1fr; }
    .trust-card { min-height: 158px; }
    .legal-nav { gap: 3px; }
    .legal-nav a { padding: 6px 8px; font-size: 12px; }
    .legal-form-grid { grid-template-columns: 1fr; gap: 0; }
    .legal-footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
