:root {
    --ink: #15121b;
    --paper: #f5f1e9;
    --white: #fffdfa;
    --violet: #7656ff;
    --violet-dark: #5b3ed5;
    --lilac: #c9baff;
    --lime: #dff56a;
    --muted: #6e6675;
    --line: rgba(21, 18, 27, .15);
    --display: 'Sora', sans-serif;
    --body: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { color: var(--white); background: #0d0a11; }
.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.brand img { width: 42px; height: 42px; border: 2px solid var(--lime); border-radius: 50%; object-fit: cover; }
.back-link { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; color: #ddd6e2; font-size: .72rem; font-weight: 800; text-decoration: none; }
.back-link:hover { border-color: var(--lime); color: var(--lime); }
.legal-hero { position: relative; overflow: hidden; padding: 88px 0 78px; color: #fff; background: radial-gradient(circle at 78% 20%, #382650, transparent 34%), #17121e; }
.legal-hero::after { position: absolute; right: -80px; bottom: -180px; width: 430px; height: 430px; border: 2px dashed rgba(223,245,106,.24); border-radius: 50%; content: ''; }
.eyebrow { margin: 0 0 17px; color: var(--lime); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: var(--display); }
h1 { max-width: 800px; margin: 0 0 22px; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .9; letter-spacing: -.065em; }
.legal-hero .lead { max-width: 700px; margin: 0; color: #c7bfcc; font-size: 1rem; line-height: 1.75; }
.updated { display: inline-flex; margin-top: 26px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: var(--lilac); font-size: .66rem; font-weight: 800; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); justify-content: space-between; gap: 66px; padding: 72px 0 96px; }
.legal-nav { position: sticky; top: 24px; align-self: start; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,250,.74); }
.legal-nav strong { display: block; margin-bottom: 14px; font-family: var(--display); font-size: .82rem; }
.legal-nav ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.legal-nav a { color: var(--muted); font-size: .7rem; font-weight: 700; line-height: 1.4; text-decoration: none; }
.legal-nav a:hover { color: var(--violet-dark); }
.legal-content section { padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.legal-content section:last-child { margin-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin: 0 0 16px; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.045em; }
.legal-content h3 { margin: 24px 0 10px; font-size: .9rem; }
.legal-content p, .legal-content li { color: #514a57; font-size: .86rem; line-height: 1.85; }
.legal-content p { margin: 0 0 14px; }
.legal-content ul { display: grid; gap: 8px; padding-left: 21px; }
.notice { padding: 18px 20px; border-left: 4px solid var(--violet); border-radius: 0 13px 13px 0; background: rgba(118,86,255,.09); }
.notice p { margin: 0; color: #3f3549; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border-radius: 18px; color: #fff; background: var(--ink); }
.contact-card p { margin: 5px 0 0; color: #bdb5c4; }
.contact-card a { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; padding: 0 16px; border-radius: 11px; color: var(--ink); background: var(--lime); font-size: .72rem; font-weight: 800; text-decoration: none; }
.site-footer { color: #918997; background: #0d0a11; }
.footer-inner { display: flex; min-height: 90px; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; font-size: .64rem; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #d4cdd9; font-size: .66rem; font-weight: 800; text-decoration: none; }
.footer-links a:hover { color: var(--lime); }

@media (max-width: 800px) {
    .legal-layout { grid-template-columns: 1fr; gap: 30px; padding-top: 46px; }
    .legal-nav { position: static; }
    .legal-nav ol { grid-template-columns: 1fr 1fr; }
    .contact-card, .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
    .container { width: min(100% - 28px, 1120px); }
    .header-inner { min-height: 72px; }
    .back-link span { display: none; }
    .legal-hero { padding: 64px 0 58px; }
    .legal-nav ol { grid-template-columns: 1fr; }
    .legal-content p, .legal-content li { font-size: .82rem; }
}
