:root {
  --ink: #263b50;
  --muted: #63778a;
  --line: #cbd9e5;
  --blue: #2f7fc2;
  --blue-dark: #205e94;
  --blue-soft: #edf7ff;
  --paper: #fff;
  --bg: #edf5fa;
  --focus: #0969b8;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 3%, rgb(99 184 237 / 14%), transparent 28rem),
    linear-gradient(180deg, #f5faff 0, var(--bg) 32rem);
  color: var(--ink);
  font: 15px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: #176ba8; text-underline-offset: 3px; }
a:hover { color: #104f7e; }
a:focus-visible { border-radius: 3px; outline: 3px solid rgb(9 105 184 / 32%); outline-offset: 3px; }

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(173 197 216 / 78%);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 2px 18px rgb(29 70 103 / 7%);
  backdrop-filter: blur(14px);
}
.legal-header__inner, .legal-footer { width: min(1180px, calc(100% - 36px)); margin: auto; }
.legal-header__inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; }
.legal-brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.legal-brand img { display: block; width: 146px; max-height: 45px; }
.legal-nav { display: flex; align-items: center; gap: 5px; }
.legal-nav a {
  border-radius: 999px;
  padding: 8px 13px;
  color: #38546c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.legal-nav a:hover, .legal-nav a[aria-current="page"] { background: #e4f2fc; color: var(--blue-dark); }

.legal-layout {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: 30px auto 46px;
  grid-template-columns: 218px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}
.legal-toc {
  position: sticky;
  top: 101px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 8px 24px rgb(35 72 104 / 7%);
  gap: 2px;
}
.legal-toc strong { padding: 4px 8px 9px; color: #34526b; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.legal-toc a { border-radius: 7px; padding: 6px 8px; color: #567083; font-size: 13px; text-decoration: none; }
.legal-toc a:hover { background: var(--blue-soft); color: var(--blue-dark); }

.legal-document, .contact-main {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 16px 46px rgb(33 73 105 / 10%);
}
.legal-document { padding: clamp(25px, 5vw, 58px); }
.legal-hero { border-bottom: 1px solid #dce6ee; padding-bottom: 29px; }
.legal-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.legal-hero h1 { margin: 0; color: #243c52; font-size: clamp(32px, 6vw, 50px); line-height: 1.08; letter-spacing: -.035em; }
.legal-lead { max-width: 72ch; margin: 15px 0 0; color: #536b7d; font-size: 17px; line-height: 1.7; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: #718494; font-size: 13px; }

.legal-callout, .contact-alert {
  margin: 28px 0;
  border: 1px solid #add2ec;
  border-left: 5px solid var(--blue);
  border-radius: 9px;
  padding: 16px 18px;
  background: var(--blue-soft);
}
.legal-callout strong, .contact-alert strong { color: #245b84; }
.legal-callout p, .contact-alert p { margin: 4px 0 0; }

.legal-document section { max-width: 80ch; padding: 24px 0 4px; }
.legal-document section + section { border-top: 1px solid #e1e9f0; }
.legal-document h2 { margin: 0 0 11px; color: #2b4961; font-size: 23px; line-height: 1.3; letter-spacing: -.01em; }
.legal-document h3, .contact-card h3 { margin: 20px 0 7px; color: #385a74; font-size: 15px; }
.legal-document p { margin: 0 0 14px; }
.legal-document ul, .contact-card ul { margin: 8px 0 16px; padding-left: 21px; }
.legal-document li, .contact-card li { margin: 5px 0; }
.legal-document strong { color: #334f67; }
.legal-table-wrap { overflow-x: auto; margin: 15px 0 18px; border: 1px solid var(--line); border-radius: 9px; }
.legal-table-wrap table { width: 100%; min-width: 670px; border-collapse: collapse; font-size: 13px; }
.legal-table-wrap th, .legal-table-wrap td { padding: 11px 13px; border-bottom: 1px solid #dce5ec; text-align: left; vertical-align: top; }
.legal-table-wrap th { background: #eef5fa; color: #34536a; }
.legal-table-wrap tr:last-child td { border-bottom: 0; }

.contact-main { width: min(1040px, calc(100% - 36px)); margin: 30px auto 46px; padding: clamp(25px, 5vw, 52px); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #cfdae3;
  border-radius: 12px;
  padding: 22px;
  background: linear-gradient(160deg, #fff, #f7fbfe);
  box-shadow: 0 6px 20px rgb(34 72 104 / 6%);
}
.contact-card:last-child { grid-column: 1 / -1; }
.contact-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #acd0ea;
  border-radius: 9px;
  background: #e5f4ff;
  color: #236b9f;
}
.contact-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h2 { margin: 12px 0 5px; color: #2c4c64; font-size: 20px; }
.contact-card p { margin: 0 0 9px; color: #586f81; }
.contact-card ul { color: #455f72; }
.contact-note { border-left: 3px solid #b4cddd; padding-left: 10px; font-size: 13px; }
.contact-action {
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid #226da5;
  border-radius: 8px;
  padding: 9px 13px;
  background: linear-gradient(#4b99d4, #2f79b5);
  box-shadow: inset 0 1px rgb(255 255 255 / 32%);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}
.contact-action:hover { background: #286fa7; color: #fff; }
.contact-expectations { margin-top: 28px; border-top: 1px solid #dce6ee; padding-top: 24px; }
.contact-expectations h2 { margin: 0; color: #2c4c64; }
.contact-expectations ol { display: grid; padding-left: 22px; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.legal-footer {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #d2dee7;
  color: var(--muted);
  font-size: 13px;
}
.legal-footer nav { display: flex; gap: 16px; }

@media (max-width: 840px) {
  .legal-layout { display: block; }
  .legal-toc { position: static; display: flex; margin-bottom: 18px; overflow-x: auto; white-space: nowrap; }
  .legal-toc strong { position: sticky; left: 0; background: #fff; }
  .contact-expectations ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .legal-header__inner { min-height: auto; align-items: flex-start; flex-direction: column; padding: 13px 0 10px; gap: 8px; }
  .legal-brand img { width: 128px; }
  .legal-nav { width: 100%; justify-content: space-between; }
  .legal-nav a { padding: 7px 10px; }
  .legal-layout, .contact-main { width: min(100% - 20px, 1180px); margin-top: 12px; }
  .legal-document, .contact-main { border-radius: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card:last-child { grid-column: auto; }
  .contact-expectations ol { grid-template-columns: 1fr; gap: 6px; }
  .legal-footer { align-items: flex-start; flex-direction: column; padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
