:root {
  --navy: #0f2040;
  --navy-2: #1a3a6b;
  --sky: #4a90c4;
  --sky-light: #e8f4fd;
  --sky-mid: #b8d9f0;
  --gold: #c9933a;
  --gold-light: #e8b96a;
  --white: #ffffff;
  --page: #f2f7fb;
  --text-dark: #0f1f3d;
  --text-mid: #334155;
  --text-muted: #64748b;
  --rule: #d8e5ef;
  --shadow-sm: 0 8px 24px rgba(15, 32, 64, 0.08);
  --shadow-lg: 0 24px 70px rgba(15, 32, 64, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(circle at 8% 42%, rgba(74, 144, 196, 0.13), transparent 25rem),
    radial-gradient(circle at 94% 70%, rgba(201, 147, 58, 0.1), transparent 24rem),
    var(--page);
  color: var(--text-dark);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--navy-2); }

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(232, 185, 106, 0.8);
  outline-offset: 4px;
}

.skip-link {
  background: var(--gold-light);
  color: var(--navy);
  font-weight: 700;
  left: 16px;
  padding: 10px 16px;
  position: fixed;
  top: -60px;
  z-index: 100;
}

.skip-link:focus { top: 12px; }

.legal-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 32, 64, 0.08);
  box-shadow: 0 1px 12px rgba(15, 32, 64, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.legal-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 72px;
  padding: 0 28px;
}

.legal-brand {
  align-items: center;
  color: var(--navy);
  display: flex;
  font-weight: 700;
  gap: 12px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.legal-brand img {
  height: 46px;
  object-fit: contain;
  width: 46px;
}

.legal-back {
  align-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 32, 64, 0.18);
  color: var(--white);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms ease, background 200ms ease;
}

.legal-back::before { content: "←"; margin-right: 8px; }
.legal-back:hover { background: linear-gradient(135deg, var(--navy-2), var(--sky)); box-shadow: 0 10px 26px rgba(15, 32, 64, 0.24); transform: translateY(-1px); }

.legal-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 58%, #2a5fa8 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.legal-hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  position: absolute;
}

.legal-hero::after {
  background: radial-gradient(circle, rgba(232, 185, 106, 0.3) 0%, rgba(232, 185, 106, 0.08) 36%, transparent 70%);
  border: 1px solid rgba(232, 185, 106, 0.22);
  border-radius: 50%;
  content: "";
  height: 360px;
  position: absolute;
  right: -90px;
  top: -170px;
  width: 360px;
}

.legal-hero-inner {
  align-items: end;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(170px, 250px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 88px 28px 102px;
  position: relative;
  z-index: 1;
}

.legal-kicker {
  align-items: center;
  color: var(--gold-light);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.2em;
  padding-bottom: 12px;
  text-transform: uppercase;
}

.legal-kicker::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  content: "";
  height: 2px;
  width: 36px;
}

.legal-hero h1 {
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(54px, 8vw, 100px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
  max-width: 850px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.legal-meta {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  font-size: 12px;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 14px;
}

.legal-meta::before {
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232, 185, 106, 0.12);
  content: "";
  height: 6px;
  width: 6px;
}

.legal-tabs-wrap {
  margin: -30px auto 0;
  max-width: 1180px;
  padding: 0 28px;
  position: relative;
  z-index: 10;
}

.legal-tabs {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 32, 64, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.legal-tabs a {
  align-items: center;
  border-right: 1px solid var(--rule);
  color: var(--text-muted);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  min-height: 60px;
  padding: 12px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}

.legal-tabs a:last-child { border-right: 0; }
.legal-tabs a:hover { background: var(--sky-light); color: var(--navy); }
.legal-tabs a[aria-current="page"] { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--white); }
.legal-tabs a[aria-current="page"]::after { background: var(--gold-light); bottom: 0; content: ""; height: 3px; left: 22%; position: absolute; right: 22%; }

.legal-layout {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 64px 28px 96px;
}

.legal-rail {
  background:
    radial-gradient(circle at 110% -10%, rgba(232, 185, 106, 0.22), transparent 38%),
    linear-gradient(145deg, var(--navy), var(--navy-2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 32, 64, 0.2);
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.75;
  overflow: hidden;
  padding: 28px;
  position: sticky;
  top: 96px;
}

.legal-rail::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.legal-rail strong {
  color: var(--white);
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.legal-rail::after {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  bottom: -54px;
  content: "";
  height: 130px;
  position: absolute;
  right: -48px;
  width: 130px;
}

.legal-body {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.legal-section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 32, 64, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 30px 32px;
  position: relative;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.legal-section::after {
  background: linear-gradient(180deg, var(--gold-light), transparent);
  border-radius: 999px;
  bottom: 24px;
  content: "";
  opacity: 0;
  position: absolute;
  right: -1px;
  top: 24px;
  transition: opacity 200ms ease;
  width: 3px;
}

.legal-section:hover {
  border-color: rgba(74, 144, 196, 0.28);
  box-shadow: 0 18px 44px rgba(15, 32, 64, 0.12);
  transform: translateY(-2px);
}

.legal-section:hover::after { opacity: 1; }

.section-number {
  align-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border: 1px solid rgba(232, 185, 106, 0.45);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 32, 64, 0.16);
  color: var(--gold-light);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 46px;
}

.section-content h2 {
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 3px 0 16px;
}

.section-content p { color: var(--text-mid); margin-bottom: 14px; }
.section-content p:last-child { margin-bottom: 0; }
.section-content ul { color: var(--text-mid); margin: 12px 0 18px 20px; }
.section-content li { margin-bottom: 9px; padding-left: 5px; }
.section-content li::marker { color: var(--gold); }
.section-content strong { color: var(--navy); font-weight: 650; }
.section-content a { color: #1f6098; font-weight: 600; text-underline-offset: 3px; }
.section-content a:hover { color: var(--navy); }

.legal-callout {
  background: linear-gradient(135deg, var(--sky-light), rgba(232, 244, 253, 0.42));
  border: 1px solid var(--sky-mid);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  color: var(--text-dark);
  margin: 18px 0;
  padding: 18px 20px;
}

.legal-footer {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--navy);
  background-size: 36px 36px;
  border-top: 4px solid var(--gold);
  color: var(--white);
}

.legal-footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 36px 28px;
}

.legal-footer p { color: rgba(255, 255, 255, 0.58); font-size: 13px; }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.legal-footer a { color: rgba(255, 255, 255, 0.82); font-size: 13px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.legal-footer a:hover { color: var(--gold-light); }

@keyframes legalReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.legal-hero-inner,
.legal-tabs-wrap,
.legal-layout { animation: legalReveal 380ms ease-out both; }
.legal-tabs-wrap { animation-delay: 70ms; }
.legal-layout { animation-delay: 120ms; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .legal-section { padding: 26px 24px; }
}

@media (max-width: 760px) {
  .legal-nav { min-height: 68px; padding: 0 18px; }
  .legal-brand img { height: 42px; width: 42px; }
  .legal-brand span { font-size: 14px; }
  .legal-back { font-size: 12px; padding: 9px 14px; }
  .legal-hero-inner { align-items: start; gap: 20px; grid-template-columns: 1fr; padding: 56px 20px 76px; }
  .legal-kicker { padding-bottom: 0; }
  .legal-hero h1 { font-size: clamp(48px, 15vw, 68px); line-height: 0.94; }
  .legal-meta { align-items: flex-start; border-radius: 12px; line-height: 1.45; }
  .legal-tabs-wrap { margin-top: -24px; padding: 0 16px; }
  .legal-tabs { border-radius: 12px; grid-template-columns: 1fr; }
  .legal-tabs a { border-bottom: 1px solid var(--rule); border-right: 0; min-height: 48px; }
  .legal-tabs a:last-child { border-bottom: 0; }
  .legal-layout { gap: 22px; grid-template-columns: 1fr; padding: 40px 16px 72px; }
  .legal-rail { padding: 24px; position: relative; top: auto; }
  .legal-rail strong { font-size: 26px; }
  .legal-body { gap: 14px; }
  .legal-section { border-radius: 14px; gap: 12px; grid-template-columns: 42px minmax(0, 1fr); padding: 22px 18px; }
  .section-number { border-radius: 10px; height: 38px; width: 38px; }
  .section-content h2 { font-size: 27px; margin-top: 2px; }
  .section-content p,
  .section-content li { font-size: 16px; }
  .legal-footer-inner { align-items: flex-start; flex-direction: column; padding: 30px 20px; }
  .legal-footer-links { flex-direction: column; gap: 0; }
}

@media (max-width: 390px) {
  .legal-back::before { display: none; }
  .legal-back { padding-inline: 12px; }
  .legal-section { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
