/* Styles for the legal pages, matching the main site */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #05070D;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #F1F5FF;
    --muted: #94A3BF;
    --dim: #5B6782;
    --cyan: #38E1FF;
    --grad: linear-gradient(120deg, #2F7BFF 0%, #38E1FF 55%, #A5F3FC 100%);
    --grad-text: linear-gradient(100deg, #60A5FA 0%, #38E1FF 25%, #A5F3FC 50%, #38E1FF 75%, #60A5FA 100%);
    --radius: 22px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: 'Sora', system-ui, sans-serif;
    --font-head: 'Manrope', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; background: var(--bg); }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(56, 225, 255, 0.3); color: #fff; }
a { color: inherit; }
[hidden] { display: none !important; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Ambient background */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient .blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; animation: drift 26s var(--ease) infinite alternate; }
.ambient .b1 { width: 720px; height: 720px; background: radial-gradient(circle, rgba(47,123,255,0.55), transparent 65%); top: -260px; right: -180px; }
.ambient .b2 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(56,225,255,0.22), transparent 65%); top: 45%; left: -260px; animation-delay: -8s; }
.ambient .b3 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(139,92,246,0.22), transparent 65%); bottom: -220px; right: 10%; animation-delay: -16s; }
.ambient .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, -40px) scale(1.1); } 100% { transform: translate(-40px, 50px) scale(0.95); } }
main, footer { position: relative; z-index: 1; }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(5, 7, 13, 0.72); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand svg { width: 42px; height: 42px; filter: drop-shadow(0 0 14px rgba(47,123,255,0.55)); transition: transform 0.6s var(--ease); }
.brand:hover svg { transform: rotate(-12deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.14em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.5em; color: var(--muted); margin-top: 0.35rem; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; }
.nav-links a { display: block; padding: 0.55rem 0.95rem; border-radius: 999px; text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 0.25s, background 0.25s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links .nav-cta { margin-left: 0.6rem; padding: 0.6rem 1.2rem; color: #fff; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.nav-links .nav-cta:hover { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; box-shadow: 0 0 24px rgba(56,225,255,0.35); }
.lang-switch { display: flex; gap: 2px; margin-left: 0.6rem; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang-switch button { padding: 0.35rem 0.6rem; border: none; border-radius: 999px; background: none; color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; cursor: pointer; transition: color 0.25s, background 0.25s; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.nav.open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Page head */
.page-head { padding: 10rem 0 3.5rem; animation: fadeUp 0.9s var(--ease) both; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); padding: 0.45rem 0.9rem; border-radius: 999px; background: rgba(56,225,255,0.06); border: 1px solid rgba(56,225,255,0.18); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
h1 { font-family: var(--font-head); font-weight: 300; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -0.035em; margin: 1.5rem 0 1.2rem; }
.gradient-text { font-weight: 400; background: var(--grad-text); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 680px; }

/* Content */
.legal { padding-bottom: 6rem; }
.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; animation: fadeUp 0.9s var(--ease) 0.1s both; }
.card { position: relative; border-radius: var(--radius); padding: 2.2rem; background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)); border: 1px solid var(--line); transition: border-color 0.4s; }
.card:hover { border-color: var(--line-strong); }
.card.full { grid-column: 1 / -1; }
.card .num { position: absolute; top: 1.7rem; right: 1.9rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--dim); }
.card h2 { font-family: var(--font-head); font-weight: 400; font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.025em; margin-bottom: 0.9rem; padding-right: 2.5rem; }
.card p, .card ul { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.8rem; }
.card > :last-child { margin-bottom: 0; }
.card ul { list-style: none; }
.card li { position: relative; padding-left: 1.4rem; margin-bottom: 0.35rem; }
.card li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.card a { color: #7DE3FF; }
.card strong { color: var(--text); font-weight: 500; }
.facts { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 0.55rem 1.2rem; font-size: 0.98rem; }
.facts dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding-top: 0.28rem; }
.facts dd { color: var(--text); }
.stand { margin-top: 2rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--dim); }

/* Footer */
footer { padding: 6rem 0 2.5rem; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 3rem; }
.footer-top p { color: var(--muted); margin-top: 1.2rem; max-width: 300px; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: var(--muted); text-decoration: none; transition: color 0.25s; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--cyan); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 15.5vw, 15rem); letter-spacing: -0.06em; line-height: 0.8; text-align: center; margin: 5rem 0 2rem; user-select: none; background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--dim); font-size: 0.85rem; padding-top: 2rem; border-top: 1px solid var(--line); }

@media (max-width: 1140px) {
    .nav-links { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); flex-direction: column; align-items: stretch; padding: 6rem 1.5rem 2rem; gap: 0.3rem; background: rgba(8,11,20,0.97); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform 0.5s var(--ease), visibility 0s linear 0.5s; }
    .nav.open .nav-links { transform: none; visibility: visible; transition: transform 0.5s var(--ease); }
    .nav-links a { font-size: 1.1rem; padding: 0.9rem 1rem; }
    .nav-links .nav-cta { margin: 1rem 0 0; text-align: center; }
    .lang-switch { margin: 1rem 0 0; align-self: center; }
    .burger { display: block; z-index: 2; }
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
    .legal-grid { grid-template-columns: 1fr; }
    .card.full { grid-column: auto; }
}
@media (max-width: 600px) {
    .container { padding: 0 1rem; }
    .page-head { padding-top: 7.5rem; }
    .card { padding: 1.7rem; }
    .facts { grid-template-columns: 1fr; gap: 0.1rem; }
    .facts dd { margin-bottom: 0.7rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
