:root {
  --navy: #33506d;
  --teal: #42bfc8;
  --teal-soft: #7cf1fa;
  --ink: #0f172a;
  --muted: #5b6b7a;
  --line: #e2e8f0;
  --surface: #f7fafc;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
.icon { width: 1em; height: 1em; display: inline-block; flex-shrink: 0; vertical-align: middle; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(226,232,240,.9);
  backdrop-filter: blur(12px);
}
.legal-header-inner {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.legal-logo { display: inline-flex; align-items: center; }
.legal-logo img { height: 38px; width: auto; display: block; }
.legal-actions { display: flex; align-items: center; gap: 10px; }
.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.legal-link:hover { color: var(--navy); background: #f1f5f9; }
.legal-signin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.legal-signin:hover { background: #263d54; }
.legal-signin .icon { width: 15px; height: 15px; }

.legal-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(226,232,240,.8);
  background:
    radial-gradient(circle at 88% 10%, rgba(66,191,200,.14), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f4f9fc 100%);
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(66,191,200,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(66,191,200,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  pointer-events: none;
}
.legal-hero-inner { position: relative; max-width: 1030px; margin: 0 auto; padding: 72px 28px 58px; }
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0b7c84;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.legal-eyebrow .icon { width: 16px; height: 16px; color: var(--teal); }
.legal-hero h1 {
  max-width: 780px;
  margin: 14px 0 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--navy);
  font-weight: 800;
}
.legal-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  color: #7a8896;
  font-size: 12px;
  font-weight: 600;
}
.legal-meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-meta .icon { width: 14px; height: 14px; color: var(--teal); }

.legal-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 46px 28px 72px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.legal-toc { position: sticky; top: 98px; }
.legal-toc-title {
  margin: 0 0 12px;
  color: #8492a0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.legal-toc nav { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: #6a7886;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.35;
}
.legal-toc a:hover { color: var(--navy); border-left-color: rgba(66,191,200,.6); }

.legal-content {
  min-width: 0;
  padding: 44px 46px 50px;
  background: var(--white);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 16px;
  box-shadow: 0 18px 50px -34px rgba(15,23,42,.22);
}
.legal-section { scroll-margin-top: 96px; }
.legal-section + .legal-section { margin-top: 36px; padding-top: 32px; border-top: 1px solid #edf1f5; }
.legal-section h2 {
  margin: 0 0 12px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--navy);
  font-weight: 800;
}
.legal-section h3 { margin: 20px 0 8px; font-size: 14px; color: #263d54; }
.legal-section p, .legal-section li { color: #536171; font-size: 14px; line-height: 1.75; }
.legal-section p { margin: 0 0 12px; }
.legal-section ul { margin: 8px 0 14px; padding-left: 20px; }
.legal-section li + li { margin-top: 6px; }
.legal-section a { color: #0b7c84; font-weight: 600; text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

.legal-callout {
  margin: 20px 0;
  padding: 15px 17px;
  border: 1px solid #cceff2;
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  background: #f2fbfc;
}
.legal-callout p { margin: 0; color: #3f5a68; font-size: 13px; }
.legal-callout a { color: var(--navy); }

.legal-footer { background: var(--navy); color: rgba(255,255,255,.72); }
.legal-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.legal-footer img { height: 34px; width: auto; }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; }
.legal-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.legal-footer a:hover { color: #fff; text-decoration: underline; }
.legal-footer small { display: block; width: 100%; color: rgba(255,255,255,.42); font-size: 11px; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .legal-toc { position: static; }
  .legal-toc nav { grid-template-columns: 1fr 1fr; display: grid; border-left: 0; gap: 2px 10px; }
  .legal-toc a { padding-left: 0; border-left: 0; }
  .legal-content { padding: 32px 26px 38px; }
}
@media (max-width: 620px) {
  .legal-header-inner { height: 66px; padding: 0 16px; }
  .legal-logo img { height: 34px; }
  .legal-link span { display: none; }
  .legal-signin { padding: 9px 12px; }
  .legal-hero-inner { padding: 48px 18px 38px; }
  .legal-hero h1 { font-size: 38px; }
  .legal-hero p { font-size: 14px; }
  .legal-layout { padding: 24px 14px 48px; }
  .legal-toc nav { grid-template-columns: 1fr; }
  .legal-content { padding: 26px 20px 30px; border-radius: 13px; }
  .legal-section h2 { font-size: 19px; }
  .legal-footer-inner { padding: 28px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
