:root {
  --ink: #07111f;
  --navy: #0c1a33;
  --blue: #1f7bff;
  --cyan: #43dcf3;
  --mint: #65f0ad;
  --paper: #fbfaf6;
  --cream: #f5f3ec;
  --muted: #607086;
  --line: rgba(10, 35, 66, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--cyan); color: var(--ink); }

.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; border-radius: 8px; background: white; padding: 12px 18px; font-weight: 750; transition: top .2s ease; }
.skip-link:focus { top: 16px; }
a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.legal-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: var(--ink);
  padding: 14px max(24px, calc((100% - 1180px) / 2));
}
.brand-panel { display: flex; width: 180px; height: 56px; align-items: center; border-radius: 14px; background: white; padding: 8px 12px; }
.brand-panel img { width: 100%; height: 100%; object-fit: contain; }
.back-link { border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 12px 18px; color: white; text-decoration: none; font-size: 13px; font-weight: 720; }
.back-link:hover { border-color: var(--cyan); color: var(--cyan); }

.legal-hero { position: relative; overflow: hidden; background: var(--navy); color: white; padding: 96px max(24px, calc((100% - 1180px) / 2)) 88px; }
.legal-hero::after { position: absolute; top: -260px; right: -120px; width: 590px; height: 590px; border-radius: 50%; background: rgba(67,220,243,.13); filter: blur(60px); content: ""; }
.legal-hero > * { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--cyan); font-size: 11px; font-weight: 820; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(101,240,173,.12); }
.legal-hero h1 { max-width: 850px; margin: 0; font-size: clamp(45px, 6vw, 76px); letter-spacing: -.06em; line-height: .98; }
.legal-hero p { max-width: 720px; margin: 24px 0 0; color: rgba(255,255,255,.62); font-size: 17px; line-height: 1.7; }
.policy-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; color: rgba(255,255,255,.46); font-size: 12px; font-weight: 700; letter-spacing: .04em; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); justify-content: space-between; gap: 90px; width: min(calc(100% - 48px), 1180px); margin: 0 auto; padding: 80px 0 110px; }
.toc { position: sticky; top: 28px; align-self: start; border-left: 1px solid var(--line); padding-left: 22px; }
.toc strong { display: block; margin-bottom: 18px; color: #236f9e; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.toc a { display: block; margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: #197faf; }

.legal-content section { scroll-margin-top: 28px; border-bottom: 1px solid var(--line); padding: 0 0 44px; margin: 0 0 44px; }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { margin: 0 0 18px; font-size: 29px; letter-spacing: -.04em; line-height: 1.15; }
.legal-content h3 { margin: 28px 0 10px; font-size: 17px; }
.legal-content p, .legal-content li { color: #4f6074; font-size: 15px; line-height: 1.78; }
.legal-content p { margin: 0 0 15px; }
.legal-content ul, .legal-content ol { margin: 12px 0 18px; padding-left: 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: #087caa; font-weight: 700; }
.legal-content strong { color: #1f3044; }
.notice { border: 1px solid rgba(31,123,255,.18); border-radius: 16px; background: #edf8fb; padding: 22px; }
.notice p:last-child { margin-bottom: 0; }
.data-table { width: 100%; margin: 22px 0; border-collapse: collapse; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 14px; text-align: left; vertical-align: top; }
.data-table th { background: var(--cream); color: #25384d; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.data-table td { color: #536479; font-size: 13px; line-height: 1.6; }
.deletion-card { border-radius: 20px; background: var(--navy); color: white; padding: 30px; }
.deletion-card h2 { color: white; }
.deletion-card p, .deletion-card li { color: rgba(255,255,255,.65); }
.deletion-contact { margin-top: 18px !important; }
.legal-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; margin-top: 10px; border-radius: 11px; background: linear-gradient(115deg, var(--cyan), var(--mint)); padding: 0 22px; color: var(--ink) !important; text-decoration: none; font-size: 14px; font-weight: 820 !important; }

.legal-footer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; background: #030a13; color: white; padding: 52px max(24px, calc((100% - 1180px) / 2)); }
.legal-footer .brand-panel { margin-bottom: 20px; }
.legal-footer p { max-width: 490px; margin: 0; color: rgba(255,255,255,.46); font-size: 13px; line-height: 1.65; }
.legal-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.legal-footer nav a { color: rgba(255,255,255,.72); font-size: 12px; text-decoration: none; }
.legal-footer nav a:hover { color: var(--cyan); }

@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; gap: 38px; }
  .toc { position: static; columns: 2; }
  .toc strong { column-span: all; }
  .legal-footer { grid-template-columns: 1fr; }
  .legal-footer nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .legal-header { min-height: 76px; padding: 12px 16px; }
  .brand-panel { width: 148px; height: 48px; }
  .back-link { padding: 10px 12px; font-size: 12px; }
  .legal-hero { padding: 72px 18px 64px; }
  .legal-layout { width: calc(100% - 36px); padding: 58px 0 80px; }
  .toc { columns: 1; }
  .data-table { display: block; overflow-x: auto; }
  .legal-footer { padding: 44px 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
