@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Nunito+Sans:wght@400;500;600;700;800&family=Paytone+One&display=swap');

:root {
  --ink: #080b13;
  --paper: #f7f4ed;
  --white: #fffef9;
  --yellow: #ffb800;
  --purple: #7234f5;
  --green: #a6ef21;
  --muted: #626873;
  --line: rgba(8, 11, 19, 0.13);
  --heading: "Paytone One", "Arial Rounded MT Bold", sans-serif;
  --game: "Bungee", "Arial Black", sans-serif;
  --body: "Nunito Sans", Arial, sans-serif;
  --container: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.7; }
body::before { position: fixed; inset: 0; z-index: -1; opacity: .55; background-image: linear-gradient(rgba(8,11,19,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(8,11,19,.045) 1px, transparent 1px); background-size: 44px 44px; content: ""; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--yellow); }

.legal-header { position: sticky; z-index: 50; top: 14px; display: flex; align-items: center; justify-content: space-between; width: var(--container); min-height: 76px; padding: 10px 13px 10px 18px; margin: 14px auto 0; color: #fff; background: rgba(8,11,19,.94); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 18px 48px rgba(8,11,19,.18); backdrop-filter: blur(16px); }
.legal-brand img { width: 76px; height: 56px; object-fit: contain; }
.legal-nav { display: flex; align-items: center; gap: 26px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 700; }
.legal-nav a:hover { color: #fff; }
.legal-home { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 17px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 11px; box-shadow: 0 4px 0 #8d5700; font-weight: 800; }

.legal-hero { padding: 115px 0 90px; color: #fff; background: radial-gradient(circle at 82% 20%, rgba(114,52,245,.55), transparent 31%), linear-gradient(125deg, #080b13, #15102e); }
.legal-hero-inner { width: var(--container); margin: 0 auto; }
.legal-kicker { color: var(--yellow); font-family: var(--game); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.legal-hero h1 { max-width: 920px; margin: 18px 0 22px; font-family: var(--heading); font-size: clamp(52px, 7vw, 92px); letter-spacing: -.045em; line-height: .98; }
.legal-hero p { max-width: 730px; margin: 0; color: rgba(255,255,255,.82); font-size: 20px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.legal-meta span { padding: 7px 12px; color: rgba(255,255,255,.86); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 99px; font-size: 13px; font-weight: 700; }

.legal-shell { display: grid; grid-template-columns: 255px minmax(0, 1fr); align-items: start; gap: 72px; width: var(--container); padding: 90px 0 120px; margin: 0 auto; }
.legal-toc { position: sticky; top: 112px; max-height: calc(100vh - 135px); padding: 22px; background: var(--white); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 7px 8px 0 var(--purple); overflow: auto; }
.legal-toc > span { display: block; margin-bottom: 14px; color: var(--purple); font-family: var(--game); font-size: 12px; }
.legal-toc nav { display: grid; gap: 7px; }
.legal-toc a { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.35; }
.legal-toc a:hover { color: var(--purple); }

.legal-content { min-width: 0; }
.legal-content section { padding-top: 25px; margin-top: -25px; scroll-margin-top: 105px; }
.legal-content section + section { padding-top: 70px; margin-top: 45px; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 23px; font-family: var(--heading); font-size: clamp(32px, 3.4vw, 47px); letter-spacing: -.03em; line-height: 1.08; }
.legal-content h3 { margin: 34px 0 12px; font-family: var(--heading); font-size: 25px; letter-spacing: -.02em; line-height: 1.15; }
.legal-content h4 { margin: 27px 0 9px; color: var(--purple); font-family: var(--game); font-size: 15px; line-height: 1.4; }
.legal-content p { margin: 0 0 17px; color: #404650; }
.legal-content strong { color: var(--ink); }
.legal-content a { color: #5c24dc; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-content ul, .legal-content ol { padding-left: 24px; margin: 10px 0 20px; color: #404650; }
.legal-content li { margin: 7px 0; padding-left: 5px; }
.legal-note-box, .legal-note { padding: 22px 24px; margin: 22px 0; color: var(--ink); background: #fff2c9; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 6px 7px 0 var(--yellow); }
.legal-note-box p:last-child, .legal-note p:last-child { margin-bottom: 0; }
.legal-columns { columns: 2; column-gap: 42px; }
.legal-table-wrap { margin: 20px 0 28px; border: 2px solid var(--ink); border-radius: 16px; overflow-x: auto; }
.legal-content table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--white); font-size: 15px; }
.legal-content th, .legal-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-content th { color: var(--ink); background: var(--yellow); font-family: var(--game); font-size: 12px; }
.legal-content tr:last-child td { border-bottom: 0; }
.provider { padding: 17px 19px; margin: 13px 0; background: rgba(114,52,245,.055); border-left: 4px solid var(--purple); border-radius: 0 12px 12px 0; }
.provider h3, .provider h4 { margin-top: 0; }
.provider p:last-child { margin-bottom: 0; }

.legal-footer { padding: 65px max(24px, calc((100vw - 1180px)/2)) 28px; color: #fff; background: var(--ink); }
.legal-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-bottom: 45px; border-bottom: 1px solid rgba(255,255,255,.14); }
.legal-footer-top img { width: 95px; height: 115px; object-fit: contain; }
.legal-footer-top p { margin: 0 auto 0 0; color: rgba(255,255,255,.72); font-family: var(--heading); font-size: 24px; line-height: 1.2; }
.legal-footer-top > a:last-child { font-family: var(--game); font-size: 16px; }
.legal-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 35px; padding: 50px 0 55px; }
.legal-links a { color: rgba(255,255,255,.74); font-size: 14px; }
.legal-links a:hover { color: #fff; }
.legal-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 23px; color: rgba(255,255,255,.62); border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }

@media (max-width: 900px) {
  :root { --container: min(100% - 32px, 720px); }
  .legal-nav { display: none; }
  .legal-shell { grid-template-columns: 1fr; gap: 45px; }
  .legal-toc { position: relative; top: auto; max-height: none; }
  .legal-toc nav { grid-template-columns: repeat(2, 1fr); gap: 9px 18px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .legal-header { min-height: 68px; padding-left: 11px; border-radius: 14px; }
  .legal-brand img { width: 66px; height: 48px; }
  .legal-home { min-height: 44px; padding: 0 13px; font-size: 13px; }
  .legal-hero { padding: 90px 0 70px; }
  .legal-hero h1 { font-size: clamp(45px, 14vw, 63px); }
  .legal-hero p { font-size: 18px; }
  .legal-shell { padding: 65px 0 90px; }
  .legal-toc nav { grid-template-columns: 1fr; }
  .legal-content section + section { padding-top: 55px; margin-top: 35px; }
  .legal-content h2 { font-size: 34px; }
  .legal-content h3 { font-size: 23px; }
  .legal-table-wrap { margin-right: -8px; }
  .legal-footer-top { align-items: flex-start; flex-direction: column; }
  .legal-footer-top p { font-size: 22px; }
  .legal-links { grid-template-columns: 1fr; }
  .legal-footer-bottom { align-items: flex-start; flex-direction: column; }
}
