:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-accent: #edf2ff;
  --card: rgba(255, 255, 255, 0.9);
  --card-solid: #ffffff;
  --text: #102033;
  --muted: #5f6b7a;
  --line: rgba(16, 32, 51, 0.12);
  --brand: #0f4c81;
  --brand-2: #1f7a8c;
  --brand-soft: rgba(15, 76, 129, 0.1);
  --shadow: 0 24px 60px rgba(16, 32, 51, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 122, 140, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 76, 129, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 45%, #eef3f9 100%);
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.7;
}

body::before {
  width: 240px;
  height: 240px;
  top: -70px;
  right: -70px;
  background: rgba(31, 122, 140, 0.16);
}

body::after {
  width: 180px;
  height: 180px;
  left: -50px;
  bottom: 18%;
  background: rgba(15, 76, 129, 0.12);
}

a {
  color: inherit;
}

a:hover {
  color: var(--brand);
}

.legal-page {
  width: 100%;
}

.legal-wrap {
  width: min(100% - 32px, var(--content-max));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}

.brand-copy strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 255, 0.92));
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(31, 122, 140, 0.18), transparent 68%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 12px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.hero p {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.meta-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.meta-card strong {
  font-size: 1rem;
  line-height: 1.5;
}

.layout {
  display: grid;
  gap: 22px;
  align-items: start;
}

.toc,
.article {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.toc {
  padding: 20px;
  position: sticky;
  top: 20px;
}

.toc h2,
.article h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand);
}

.article {
  padding: 22px;
}

.section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  line-height: 1.25;
}

.section p {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.8;
}

.section p:last-child {
  margin-bottom: 0;
}

.section ul,
.section ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.8;
  display: grid;
  gap: 10px;
}

.callout {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.08), rgba(31, 122, 140, 0.08));
  border: 1px solid rgba(15, 76, 129, 0.14);
}

.callout strong {
  display: block;
  margin-bottom: 8px;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #0f2438;
  color: #fff;
}

.contact-card a {
  color: #d2f3ff;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.86);
}

.small-print {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.foot {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (min-width: 920px) {
  .layout {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }

  .article {
    padding: 30px;
  }
}

@media (max-width: 919px) {
  .toc {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .legal-wrap {
    width: min(100% - 20px, var(--content-max));
    padding-top: 14px;
  }

  .hero,
  .toc,
  .article {
    border-radius: 22px;
  }

  .hero {
    padding: 22px;
  }

  .article {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-links {
    width: 100%;
  }

  .pill {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  body::after {
    display: none;
  }

  .topbar-links,
  .toc {
    display: none;
  }

  .hero,
  .toc,
  .article {
    box-shadow: none;
    background: #fff;
  }
}
