@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap");

:root {
  --navy: #102b3f;
  --navy-deep: #081d2c;
  --blue: #2f72e2;
  --blue-soft: #eaf2ff;
  --sand: #f5efe4;
  --white: #fff;
  --ink: #173042;
  --muted: #637481;
  --line: #dce5ea;
  --sans: "Manrope", sans-serif;
  --serif: "Newsreader", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f7f9fa;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
}

a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(47, 114, 226, .35); outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 229, 234, .9);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
}

.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { position: relative; width: 36px; height: 36px; overflow: hidden; border-radius: 11px; background: var(--blue); transform: rotate(-5deg); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border-radius: 50%; background: var(--white); }
.brand-mark::before { width: 24px; height: 24px; top: 8px; left: -7px; opacity: .9; }
.brand-mark::after { width: 16px; height: 16px; top: -5px; right: -2px; background: #ffc75a; }
.back-link { color: var(--blue); font-size: 12px; font-weight: 700; text-underline-offset: 4px; }

.legal-hero {
  padding: 82px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 18%, rgba(47, 114, 226, .1), transparent 28%),
    linear-gradient(145deg, #f3f8ff, #fff);
}

.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1 { max-width: 800px; margin: 0 0 18px; color: var(--navy); font: 600 clamp(52px, 7vw, 82px)/.95 var(--serif); letter-spacing: -.05em; }
.legal-hero p:last-child { max-width: 700px; margin: 0; color: var(--muted); font-size: 14px; }

.legal-layout { padding: 70px 0 100px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 70px; align-items: start; }
.toc {
  position: sticky;
  top: 105px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
}
.toc strong { display: block; margin-bottom: 10px; font-size: 11px; }
.toc nav { display: grid; }
.toc a { padding: 7px 0; color: var(--muted); font-size: 11px; text-decoration: none; }
.toc a:hover { color: var(--blue); }

.legal-copy {
  max-width: 760px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(16, 43, 63, .07);
}

.updated { margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.notice { margin-bottom: 32px; padding: 17px 18px; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: var(--blue-soft); color: #3d5d73; font-size: 12px; }
.warning { border-left-color: #e09b32; background: #fff5df; color: #6e522a; }
.legal-copy section { padding: 5px 0 25px; scroll-margin-top: 100px; }
h2 { margin: 0 0 11px; color: var(--navy); font: 600 30px/1.08 var(--serif); letter-spacing: -.025em; }
h3 { margin: 20px 0 8px; color: var(--navy); font-size: 13px; }
.legal-copy p, .legal-copy li { color: #526774; font-size: 12px; }
.legal-copy ul, .legal-copy ol { padding-left: 21px; }
.legal-copy li { margin-bottom: 7px; }
.legal-copy a { color: var(--blue); text-underline-offset: 3px; }

.policy-links { padding: 26px 0; border-top: 1px solid var(--line); background: var(--sand); }
.policy-links .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.policy-links a { color: #536774; font-size: 10px; font-weight: 700; text-underline-offset: 4px; }
.footer { padding: 30px 0; background: var(--navy-deep); color: #8da5b4; font-size: 10px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 25px; }

@media (max-width: 800px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc nav { grid-template-columns: 1fr 1fr; gap: 0 15px; }
  .legal-copy { max-width: none; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 30px, 1120px); }
  .nav { min-height: 68px; }
  .legal-hero { padding: 62px 0 54px; }
  h1 { font-size: 52px; }
  .legal-layout { padding: 45px 0 75px; }
  .legal-copy { padding: 25px 20px; }
  .toc nav { grid-template-columns: 1fr; }
  .footer .wrap { flex-direction: column; }
}
