:root {
  color: #172033;
  background: #f4f7fb;
  font-family: "Manrope Variable", "Manrope", "Aptos", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #172033;
  --muted: #637087;
  --blue: #174ebf;
  --blue-dark: #103a94;
  --line: #dce4ef;
  --surface: #ffffff;
  --green: #1d7a4b;
  --amber: #9a6500;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 12% 8%, #e9f1ff 0, transparent 31rem), #f4f7fb; }
a { color: inherit; }
a:focus-visible { outline: 3px solid rgba(23, 78, 191, .25); outline-offset: 4px; border-radius: 5px; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(220, 228, 239, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.legal-header-inner,
.legal-shell,
.legal-footer-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.legal-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 9px 22px rgba(23, 78, 191, .22);
  font-size: 13px;
  letter-spacing: .04em;
}

.legal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.legal-nav a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.legal-nav a[aria-current="page"], .legal-nav a:hover { color: var(--blue); }

.legal-shell { padding: 62px 0 90px; }
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #0d2b63, #174ebf 72%, #2872e6);
  box-shadow: 0 28px 70px rgba(14, 44, 99, .2);
}
.legal-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -95px;
  top: -140px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .04), 0 0 0 84px rgba(255, 255, 255, .03);
}
.legal-eyebrow { display: block; margin-bottom: 18px; color: #a9c9ff; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.legal-eyebrow.blue { color: var(--blue); }
.legal-hero h1 { max-width: 800px; margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.055em; }
.legal-hero p { max-width: 720px; margin: 24px 0 0; color: rgba(255, 255, 255, .78); font-size: clamp(16px, 2vw, 20px); line-height: 1.6; }
.legal-updated { display: inline-flex; margin-top: 28px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; margin-top: 34px; align-items: start; }
.legal-toc, .legal-content, .deletion-panel { border: 1px solid var(--line); background: var(--surface); box-shadow: 0 16px 45px rgba(35, 63, 111, .07); }
.legal-toc { position: sticky; top: 100px; padding: 22px; border-radius: 19px; }
.legal-toc strong { display: block; margin-bottom: 13px; font-size: 13px; }
.legal-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.35; text-decoration: none; }
.legal-toc a:hover { color: var(--blue); }
.legal-content { padding: clamp(25px, 5vw, 58px); border-radius: 24px; }
.legal-content section + section { margin-top: 46px; padding-top: 42px; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 18px; color: var(--ink); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; }
.legal-content h3 { margin: 25px 0 10px; font-size: 18px; }
.legal-content p, .legal-content li { color: #4d5d73; font-size: 15px; line-height: 1.75; }
.legal-content ul, .legal-content ol { padding-left: 22px; }
.legal-content li + li { margin-top: 8px; }
.legal-content a { color: var(--blue); font-weight: 700; }
.legal-note { padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 8px 14px 14px 8px; background: #eef4ff; }
.legal-note.warning { border-left-color: #e8a20b; background: #fff7df; }

.deletion-panel { margin-top: 34px; padding: clamp(28px, 5vw, 52px); border-radius: 24px; }
.deletion-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; align-items: center; }
.deletion-panel h2 { margin: 0 0 12px; font-size: clamp(27px, 4vw, 42px); letter-spacing: -.04em; }
.deletion-panel p { color: var(--muted); line-height: 1.7; }
.deletion-actions { display: grid; gap: 12px; }
.legal-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 13px; color: #fff; background: var(--blue); box-shadow: 0 12px 28px rgba(23, 78, 191, .2); font-weight: 800; text-align: center; text-decoration: none; }
.legal-button:hover { background: var(--blue-dark); }
.legal-button.secondary { color: var(--blue); background: #edf3ff; box-shadow: none; }
.legal-step { display: grid; grid-template-columns: 34px 1fr; gap: 13px; margin-top: 20px; }
.legal-step span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--blue); background: #edf3ff; font-weight: 800; }
.legal-step p { margin: 3px 0 0; }

.legal-footer { padding: 32px 0; color: rgba(255, 255, 255, .7); background: #0d2654; }
.legal-footer-inner { display: flex; justify-content: space-between; gap: 24px; font-size: 12px; }
.legal-footer a { color: #fff; }

@media (max-width: 780px) {
  .legal-header-inner, .legal-shell, .legal-footer-inner { width: min(100% - 28px, 1120px); }
  .legal-header-inner { min-height: 68px; }
  .legal-nav { gap: 11px; }
  .legal-nav a:first-child { display: none; }
  .legal-shell { padding: 24px 0 60px; }
  .legal-hero { border-radius: 20px; }
  .legal-layout, .deletion-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }
  .legal-content { border-radius: 18px; }
  .legal-footer-inner { flex-direction: column; }
}

@media (max-width: 520px) {
  .legal-header-inner { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 0; }
  .legal-brand { font-size: 18px; }
  .legal-brand-mark { width: 34px; height: 34px; border-radius: 11px 11px 11px 4px; }
  .legal-nav { width: 100%; justify-content: flex-start; gap: 8px 14px; }
  .legal-nav a { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
