.legal-page {
  --legal-blue: #0b72ee;
  --legal-navy: #07173e;
  --legal-muted: #607196;
  --legal-line: #dfe8f5;
  --legal-soft: #f5f9ff;
  min-height: calc(100vh - 72px);
  color: var(--legal-navy);
  background: #f7faff;
  font-family: Inter, system-ui, sans-serif;
}
.legal-page.hidden { display: none !important; }
body.legal-mode { background: #f7faff; }
body.legal-mode > main,
body.legal-mode > section:not(#legal-page),
body.legal-mode > div:not(#cookie-notice):not(#legal-page),
body.legal-mode > footer.site-footer,
body.legal-mode .legal-page > footer.site-footer { display: none !important; }
body.legal-mode > #legal-page { display: block !important; }
.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 56px clamp(24px, 6vw, 96px) 48px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, #338eff66 0 15%, transparent 16%),
    linear-gradient(120deg, #06163d 0%, #0a2b70 58%, #0b72ee 150%);
}
.legal-hero::before, .legal-hero::after {
  content: '';
  position: absolute;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
}
.legal-hero::before { width: 350px; height: 350px; right: 8%; top: -250px; box-shadow: 0 0 0 42px #ffffff0c, 0 0 0 84px #ffffff08; }
.legal-hero::after { width: 220px; height: 220px; left: -140px; bottom: -170px; box-shadow: 0 0 0 42px #ffffff0a; }
.legal-breadcrumb { position: relative; z-index: 1; margin-bottom: 28px; color: #c7d8f5; font-size: 13px; }
.legal-breadcrumb button { border: 0; padding: 0; color: #fff; background: transparent; font: inherit; cursor: pointer; }
.legal-hero-copy { position: relative; z-index: 1; max-width: 860px; }
.legal-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #7eb6ff73; border-radius: 100px; color: #dbeaff; background: #ffffff12; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.legal-hero h1 { margin: 15px 0 10px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -2px; }
.legal-hero p { max-width: 730px; margin: 0; color: #d5e3f8; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.7; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; color: #c7daf7; font-size: 12px; }
.legal-meta span { display: inline-flex; align-items: center; gap: 7px; }
.legal-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--legal-line);
  background: #ffffffed;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px #1637680b;
}
.legal-tabs button { min-height: 42px; border: 1px solid var(--legal-line); border-radius: 9px; padding: 0 19px; color: #3b527e; background: #fff; font: 700 13px Inter, sans-serif; cursor: pointer; }
.legal-tabs button.active { border-color: var(--legal-blue); color: #fff; background: var(--legal-blue); box-shadow: 0 8px 20px #0b72ee2b; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 820px); justify-content: center; gap: 30px; max-width: 1200px; margin: 0 auto; padding: 38px 24px 64px; }
.legal-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 112px); overflow: auto; padding: 17px; border: 1px solid var(--legal-line); border-radius: 13px; background: #fff; box-shadow: 0 10px 30px #183e700b; }
.legal-toc h2 { margin: 0 0 12px; font-size: 14px; }
.legal-toc button { width: 100%; border: 0; border-left: 2px solid transparent; padding: 8px 10px; color: #5d7095; background: transparent; font: 500 12px/1.35 Inter, sans-serif; text-align: left; cursor: pointer; }
.legal-toc button:hover, .legal-toc button.active { border-left-color: var(--legal-blue); color: var(--legal-blue); background: #f1f7ff; }
.legal-main { min-width: 0; }
.legal-summary { margin-bottom: 18px; padding: 20px 22px; border: 1px solid #bcdcff; border-radius: 12px; color: #284b7d; background: #eef7ff; line-height: 1.65; }
.legal-summary strong { color: var(--legal-navy); }
.legal-section { scroll-margin-top: 92px; margin-bottom: 15px; padding: 25px 28px; border: 1px solid var(--legal-line); border-radius: 13px; background: #fff; box-shadow: 0 10px 30px #183e7009; }
.legal-section h2 { display: flex; align-items: center; gap: 11px; margin: 0 0 13px; font-size: 20px; letter-spacing: -.35px; }
.legal-section h2 span { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: var(--legal-blue); background: #eaf4ff; font-size: 12px; }
.legal-section h3 { margin: 22px 0 8px; font-size: 15px; }
.legal-section p, .legal-section li { color: #4f638a; font-size: 14px; line-height: 1.75; }
.legal-section p { margin: 9px 0; }
.legal-section ul, .legal-section ol { margin: 9px 0; padding-left: 22px; }
.legal-section li { margin: 6px 0; }
.legal-section a { color: var(--legal-blue); font-weight: 600; }
.legal-table-wrap { margin: 15px 0; overflow-x: auto; border: 1px solid var(--legal-line); border-radius: 9px; }
.legal-table { width: 100%; min-width: 610px; border-collapse: collapse; font-size: 12px; }
.legal-table th { padding: 12px; color: #314a76; background: #f1f7ff; text-align: left; }
.legal-table td { padding: 12px; border-top: 1px solid var(--legal-line); color: #566b91; line-height: 1.55; vertical-align: top; }
.legal-callout { margin: 14px 0; padding: 14px 16px; border-left: 3px solid var(--legal-blue); border-radius: 0 8px 8px 0; color: #3f5882; background: #f3f8ff; font-size: 13px; line-height: 1.6; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.legal-actions button, .legal-actions a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--legal-blue); border-radius: 8px; padding: 0 17px; color: var(--legal-blue); background: #fff; font: 700 12px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.legal-actions .primary { color: #fff; background: var(--legal-blue); }
.legal-disclaimer { margin-top: 22px; color: #7a89a6; font-size: 11px; line-height: 1.6; }
.legal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding: 25px clamp(24px, 6vw, 96px); color: #9eafd0; background: #07173e; font-size: 12px; }
.legal-footer strong { color: white; font-size: 17px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-footer button { border: 0; padding: 0; color: #bdcbea; background: transparent; font: 600 12px Inter, sans-serif; cursor: pointer; }
.cookie-notice { position: fixed; left: 22px; right: 22px; bottom: 20px; z-index: 12000; max-width: 880px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; margin: auto; padding: 15px 16px; border: 1px solid #cbdcf2; border-radius: 13px; color: #18355f; background: #fffffff5; box-shadow: 0 20px 60px #07173e33; backdrop-filter: blur(16px); font: 13px/1.5 Inter, sans-serif; }
.cookie-notice.hidden { display: none; }
.cookie-notice-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--legal-blue, #0b72ee); font-size: 21px; }
.cookie-notice strong { display: block; color: #07173e; }
.cookie-notice p { margin: 2px 0 0; color: #617397; font-size: 12px; }
.cookie-notice-actions { display: flex; gap: 8px; }
.cookie-notice button { min-height: 38px; border: 1px solid #cbdcf2; border-radius: 8px; padding: 0 13px; color: #2e4c79; background: #fff; font: 700 11px Inter, sans-serif; cursor: pointer; }
.cookie-notice .cookie-accept { border-color: #0b72ee; color: #fff; background: #0b72ee; }
@media (max-width: 800px) {
  .legal-layout { grid-template-columns: 1fr; padding: 24px 14px 42px; }
  .legal-toc { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px; }
  .legal-toc h2 { display: none; }
  .legal-toc button { width: auto; min-width: max-content; border: 1px solid var(--legal-line); border-radius: 7px; }
  .legal-tabs { justify-content: flex-start; overflow-x: auto; }
  .legal-section { padding: 20px; }
  .cookie-notice { grid-template-columns: 38px 1fr; }
  .cookie-notice-icon { width: 38px; height: 38px; }
  .cookie-notice-actions { grid-column: 1 / -1; }
  .cookie-notice button { flex: 1; }
}
@media print {
  body > *:not(#legal-page) { display: none !important; }
  .legal-page { display: block !important; background: white; }
  .legal-tabs, .legal-toc, .legal-actions, .legal-footer, .cookie-notice { display: none !important; }
  .legal-hero { padding: 24px; color: #07173e; background: white; }
  .legal-hero p, .legal-meta, .legal-breadcrumb { color: #4f638a; }
  .legal-layout { display: block; max-width: none; padding: 0; }
  .legal-section { break-inside: avoid; border: 0; box-shadow: none; }
}
