:root {
  color-scheme: light;
  --ink: #09142d;
  --muted: #5f6d85;
  --line: #dfe5ef;
  --paper: #ffffff;
  --wash: #f4f6fa;
  --blue: #2457f5;
  --amber: #f2b84b;
  --green: #087f5b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--wash); }
a { color: inherit; }
img { display: block; max-width: 100%; }

.legal-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
}
.legal-skip:focus { top: 16px; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}
.legal-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-brand img { width: 220px; height: auto; }
.legal-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 20px; }
.legal-nav a { color: var(--muted); font-size: 12px; font-weight: 720; text-decoration: none; }
.legal-nav a[aria-current="page"], .legal-nav a:hover { color: var(--blue); }
.legal-nav .app-link { padding: 9px 13px; border-radius: 999px; color: white; background: var(--ink); }
.legal-nav .app-link:hover { color: white; background: #14213d; }

.legal-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.legal-hero {
  padding: 76px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 12%, rgba(36, 87, 245, .12), transparent 28%),
    linear-gradient(180deg, #fff, #f7f9fc);
}
.legal-kicker { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.legal-hero h1 { max-width: 860px; margin: 0; font-size: clamp(42px, 6.4vw, 74px); line-height: .98; letter-spacing: -.06em; }
.legal-lead { max-width: 780px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.legal-meta span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: #4b5870; background: white; font-size: 11px; font-weight: 700; }

.legal-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 58px; padding: 58px 0 92px; }
.legal-toc { align-self: start; position: sticky; top: 104px; }
.legal-toc strong { display: block; margin-bottom: 13px; color: #8a96aa; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.legal-toc a { display: block; padding: 8px 0; color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.legal-toc a:hover { color: var(--blue); }
.legal-toc .legal-contact { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }

.legal-content { min-width: 0; }
.legal-content section { scroll-margin-top: 105px; padding: 0 0 38px; }
.legal-content section + section { padding-top: 38px; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 0 0 18px; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.04em; }
.legal-content h3 { margin: 26px 0 11px; font-size: 18px; letter-spacing: -.025em; }
.legal-content p, .legal-content li { color: #46536a; font-size: 14px; line-height: 1.85; }
.legal-content p { margin: 0 0 15px; }
.legal-content ul, .legal-content ol { margin: 14px 0 18px; padding-left: 23px; }
.legal-content li + li { margin-top: 7px; }
.legal-content a { color: #1648d7; font-weight: 680; }
.legal-callout {
  margin: 0 0 34px;
  padding: 20px 22px;
  border: 1px solid #b9cafa;
  border-radius: 18px;
  color: #163d9e;
  background: #edf3ff;
  font-size: 13px;
  line-height: 1.75;
}
.legal-callout strong { color: #0a2e86; }
.legal-callout.warning { border-color: #f1d08a; color: #6f4a00; background: #fff8e8; }
.legal-callout.warning strong { color: #6a4100; }
.legal-table-wrap { overflow-x: auto; margin: 20px 0 26px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.legal-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.legal-table th, .legal-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: white; background: var(--ink); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.legal-table td { color: #4b5870; font-size: 12px; line-height: 1.65; }
.legal-table tr:last-child td { border-bottom: 0; }

.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.legal-card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; text-decoration: none; box-shadow: 0 10px 35px rgba(9, 20, 45, .04); }
.legal-card small { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.legal-card h2 { margin: 13px 0 9px; font-size: 24px; }
.legal-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.legal-card:hover { border-color: #9eb4f8; transform: translateY(-2px); }

.legal-footer { color: #aeb9cd; background: #050c1e; }
.legal-footer-inner { width: min(1180px, calc(100% - 40px)); min-height: 122px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.legal-footer img { width: 185px; }
.legal-footer p { margin: 8px 0 0; color: #77849a; font-size: 11px; }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-footer-links a { color: #aeb9cd; font-size: 11px; text-decoration: none; }
.legal-footer-links a:hover { color: white; }

@media (max-width: 800px) {
  .legal-header-inner { min-height: 86px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding: 14px 0; }
  .legal-brand img { width: 185px; }
  .legal-nav { justify-content: flex-start; gap: 8px 14px; }
  .legal-nav .optional-nav { display: none; }
  .legal-hero { padding: 54px 0 34px; }
  .legal-lead { font-size: 16px; }
  .legal-layout { display: block; padding: 38px 0 70px; }
  .legal-toc { position: static; margin-bottom: 38px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-footer-inner { padding: 30px 0; }
}

@media print {
  .legal-header, .legal-toc, .legal-footer { display: none; }
  .legal-shell { width: 100%; }
  .legal-hero { padding: 0 0 24px; }
  .legal-layout { display: block; padding: 28px 0; }
  .legal-content p, .legal-content li { color: #111827; font-size: 11pt; }
}

