:root {
  --blue: #1677d2;
  --blue-strong: #0e5fa8;
  --blue-soft: #eaf5ff;
  --navy: #142744;
  --text: #2b3d57;
  --muted: #5d6e84;
  --line: #dce5ef;
  --surface: #fff;
  --surface-soft: #f6f8fb;
  --container: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font: 400 16px/1.72 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.16; letter-spacing: -.025em; }
:focus-visible { outline: 3px solid rgba(22,119,210,.32); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 198px; height: auto; }
.header-links { display: flex; align-items: center; gap: 20px; }
.header-links a { color: #4e6079; font-size: 14px; font-weight: 700; text-decoration: none; }
.header-links a:hover { color: var(--blue-strong); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; color: #fff !important; background: var(--blue); border-radius: 9px; text-decoration: none; }
.legal-hero { padding: 74px 0 58px; background: linear-gradient(135deg,#fff 0%,#f2f8fe 100%); border-bottom: 1px solid var(--line); }
.eyebrow { display: block; margin-bottom: 14px; color: var(--blue-strong); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.legal-hero h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(38px,5vw,62px); }
.legal-hero p { max-width: 780px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.updated { display: inline-block; margin-top: 24px; padding: 7px 10px; color: #53657b; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.legal-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 65px; padding-block: 62px 88px; }
.legal-nav { position: sticky; top: 106px; align-self: start; padding: 22px; background: var(--surface-soft); border: 1px solid var(--line); }
.legal-nav strong { display: block; margin-bottom: 12px; color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.legal-nav a { display: block; padding: 7px 0; color: #506278; font-size: 13px; text-decoration: none; }
.legal-nav a:hover { color: var(--blue-strong); }
.legal-content { min-width: 0; }
.legal-content section { padding-bottom: 35px; margin-bottom: 35px; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { margin-bottom: 0; border-bottom: 0; }
.legal-content h2 { margin-bottom: 15px; font-size: 27px; }
.legal-content h3 { margin: 25px 0 10px; font-size: 19px; }
.legal-content p, .legal-content li { color: #4d5f76; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.notice { margin-bottom: 34px; padding: 20px 22px; color: #40536c; background: var(--blue-soft); border-left: 3px solid var(--blue); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th, td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
th { color: var(--navy); background: var(--surface-soft); }
tr:last-child td { border-bottom: 0; }
.contact-card { padding: 26px; background: var(--navy); }
.contact-card h2, .contact-card p, .contact-card a { color: #fff; }
.contact-card p { max-width: 680px; }
.site-footer { padding: 42px 0 25px; color: #b5c5d8; background: #0e2038; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3,.75fr); gap: 38px; padding-bottom: 32px; }
.footer-brand img { width: 185px; height: auto; margin-bottom: 15px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 330px; color: #afc0d5; font-size: 12px; }
.site-footer h2 { margin-bottom: 13px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.footer-links { display: grid; gap: 8px; }
.footer-links a, .footer-links span { color: #afc0d5; font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; color: #93a6bd; border-top: 1px solid rgba(255,255,255,.11); font-size: 11px; }

@media (max-width: 820px) {
  .header-links > a:not(.button) { display: none; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; padding-block: 42px 65px; }
  .legal-nav { position: static; columns: 2; }
  .legal-nav strong { column-span: all; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .brand img { width: 172px; }
  .header-links .button { padding-inline: 13px; font-size: 13px; }
  .legal-hero { padding: 52px 0 42px; }
  .legal-hero p { font-size: 16px; }
  .legal-nav { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 420px) {
  .header-links .button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
