:root {
  color-scheme: light;
  --legal-ink: #071f3b;
  --legal-muted: #60758b;
  --legal-blue: #096da4;
  --legal-blue-dark: #064c75;
  --legal-blue-soft: #eaf5fb;
  --legal-bg: #f2f6fa;
  --legal-card: #fff;
  --legal-line: #d8e3ec;
  --legal-shadow: 0 18px 55px rgba(7, 31, 59, .08);
  font-family: Nunito, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body { width: 100%; max-width: 100%; margin: 0; overflow-x: hidden; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  min-height: 100vh;
  background:
    radial-gradient(800px 360px at 8% 0, rgba(14, 132, 190, .08), transparent 68%),
    var(--legal-bg);
  color: var(--legal-ink);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--legal-blue); }
a:hover { color: var(--legal-blue-dark); }

.legal-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 227, 236, .9);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 28px rgba(7, 31, 59, .04);
  backdrop-filter: blur(16px);
}

.legal-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--legal-ink);
  text-decoration: none;
}

.legal-brand img { width: 44px; height: 44px; border: 1px solid var(--legal-line); border-radius: 12px; object-fit: contain; }
.legal-brand span { display: grid; line-height: 1.05; }
.legal-brand strong { font-size: 16px; font-weight: 900; }
.legal-brand small { margin-top: 5px; color: var(--legal-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.legal-nav { display: flex; align-items: center; gap: 6px; }
.legal-nav a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 13px; border-radius: 11px; color: #324e68; font-size: 13px; font-weight: 800; text-decoration: none; }
.legal-nav a:hover,
.legal-nav a.is-active { background: var(--legal-blue-soft); color: var(--legal-blue-dark); }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-block: 32px 54px;
}

.legal-aside {
  position: sticky;
  top: 108px;
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--legal-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
}

.legal-aside__eyebrow,
.legal-kicker { color: var(--legal-blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.legal-aside > strong { font-size: 17px; line-height: 1.25; }
.legal-aside nav { display: grid; gap: 3px; margin-top: 8px; }
.legal-aside nav a { padding: 8px 9px; border-radius: 9px; color: #526b82; font-size: 12px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.legal-aside nav a:hover { background: var(--legal-blue-soft); color: var(--legal-blue-dark); }

.legal-card {
  min-width: 0;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--legal-line);
  border-radius: 28px;
  background: var(--legal-card);
  box-shadow: var(--legal-shadow);
}

.legal-hero { padding-bottom: 30px; border-bottom: 1px solid var(--legal-line); }
.legal-hero h1 { max-width: 760px; margin: 11px 0 7px; color: var(--legal-ink); font-size: clamp(32px, 5vw, 52px); font-weight: 950; line-height: 1.04; letter-spacing: -.04em; }
.legal-updated { margin: 0 0 20px; color: var(--legal-muted); font-size: 13px; font-weight: 700; }
.legal-hero > p:last-child { max-width: 760px; margin: 0; color: #405d75; font-size: 17px; line-height: 1.65; }

.legal-card section { scroll-margin-top: 104px; padding-top: 30px; }
.legal-card section + section { margin-top: 30px; border-top: 1px solid #edf2f6; }
.legal-card h2 { margin: 0 0 13px; color: var(--legal-ink); font-size: clamp(20px, 3vw, 25px); font-weight: 900; line-height: 1.25; }
.legal-card p { margin: 0; color: #405d75; }
.legal-card p + p { margin-top: 12px; }
.legal-card ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 22px; color: #405d75; }
.legal-card strong { color: var(--legal-ink); }

.legal-contact { padding: 24px !important; border: 1px solid #c9e2f0 !important; border-radius: 20px; background: linear-gradient(145deg, #f5fbfe, #edf7fc); }
.legal-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.legal-contact__actions a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border-radius: 12px; background: var(--legal-blue); color: #fff; font-size: 13px; font-weight: 900; text-decoration: none; }
.legal-contact__actions a:hover { background: var(--legal-blue-dark); color: #fff; }
.legal-note { margin-top: 16px !important; color: var(--legal-muted) !important; font-size: 13px; }

.legal-footer { border-top: 1px solid var(--legal-line); background: #071f3b; color: #dce9f3; }
.legal-footer .legal-shell { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; }
.legal-footer a { color: #fff; font-weight: 800; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-aside { position: static; }
  .legal-aside nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .legal-aside nav::-webkit-scrollbar { display: none; }
  .legal-aside nav a { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 640px) {
  .legal-shell { width: min(100% - 20px, 1180px); }
  .legal-header { position: static; }
  .legal-header__inner { min-height: 68px; gap: 10px; }
  .legal-brand span { display: none; }
  .legal-nav { min-width: 0; gap: 2px; }
  .legal-nav a { min-height: 42px; padding-inline: 9px; font-size: 11px; text-align: center; line-height: 1.15; }
  .legal-layout { gap: 12px; padding-block: 12px 28px; }
  .legal-aside { padding: 15px; border-radius: 16px; overflow: hidden; }
  .legal-card { padding: 22px 18px; border-radius: 20px; }
  .legal-hero { padding-bottom: 23px; }
  .legal-hero h1 { font-size: 34px; overflow-wrap: anywhere; }
  .legal-hero > p:last-child { font-size: 15px; }
  .legal-card section { padding-top: 23px; }
  .legal-card section + section { margin-top: 23px; }
  .legal-card p,
  .legal-card li { overflow-wrap: anywhere; }
  .legal-contact { padding: 18px !important; }
  .legal-contact__actions { display: grid; }
  .legal-contact__actions a { justify-content: center; }
  .legal-footer .legal-shell { min-height: 88px; flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
}

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