:root {
  --xh-ink: #1d2a3a;
  --xh-cream: #fff8eb;
  --xh-teal: #258b87;
  --xh-teal-dark: #176b69;
  --xh-copy-light: #f8efdf;
  --xh-copy-dark: #334052;
  --xh-rule-light: rgba(255, 248, 235, 0.32);
  --xh-rule-dark: rgba(29, 42, 58, 0.18);
  --xh-display: Georgia, "Times New Roman", serif;
  --xh-body: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--xh-cream);
  color: var(--xh-copy-dark);
  font-family: var(--xh-body);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--xh-teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--xh-teal-dark);
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid #f5c66e;
  outline-offset: 4px;
}

::selection {
  background: #bfe0da;
  color: var(--xh-ink);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-top: 2px solid var(--xh-cream);
  border-bottom: 1px solid rgba(255, 248, 235, 0.12);
  background: rgba(29, 42, 58, 0.97);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 48px, 1440px);
  min-height: 94px;
  margin: 0 auto;
}

.site-brand {
  grid-column: 2;
  color: var(--xh-copy-light);
  font-family: var(--xh-display);
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  gap: clamp(18px, 2.5vw, 38px);
  align-items: center;
}

.site-nav a {
  color: rgba(248, 239, 223, 0.78);
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--xh-copy-light);
  text-decoration: underline;
  text-underline-offset: 0.45em;
}

.legal-hero {
  background: var(--xh-cream);
}

.legal-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.85fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  width: min(100% - 64px, 1120px);
  min-height: 760px;
  margin: 0 auto;
  padding: 88px 0;
}

.legal-kicker {
  margin: 0 0 20px;
  color: var(--xh-teal-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-hero h1,
.legal-section h2,
.legal-hub h1,
.legal-hub h2,
.site-footer__title {
  margin: 0;
  color: inherit;
  font-family: var(--xh-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.legal-hero h1 {
  max-width: 740px;
  color: var(--xh-ink);
  font-size: clamp(58px, 7.2vw, 92px);
}

.legal-hero__lead {
  max-width: 760px;
  margin: 42px 0 0;
  color: var(--xh-ink);
  font-family: var(--xh-display);
  font-size: clamp(30px, 3.3vw, 47px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.legal-hero__copy {
  max-width: 760px;
  margin-top: 42px;
}

.legal-hero__copy p {
  margin: 0 0 18px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 30px 0 0;
  color: #546074;
  font-size: 15px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 44px;
}

.legal-button {
  display: inline-flex;
  min-width: 210px;
  min-height: 64px;
  padding: 16px 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--xh-ink);
  border-radius: 999px;
  background: var(--xh-ink);
  color: var(--xh-copy-light);
  text-align: center;
  text-decoration: none;
}

.legal-button--secondary {
  background: transparent;
  color: var(--xh-ink);
}

.legal-button:hover {
  border-color: var(--xh-teal-dark);
  background: var(--xh-teal-dark);
  color: white;
}

.legal-hero__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.legal-hero__caption {
  margin: 16px 0 0;
  color: var(--xh-ink);
  font-size: 15px;
  text-align: center;
}

.legal-hero__caption strong {
  margin-right: 4px;
}

.legal-section {
  scroll-margin-top: 94px;
}

.legal-section__inner {
  width: min(100% - 64px, 1120px);
  margin: 0 auto;
  padding: clamp(70px, 8vw, 122px) 0;
}

.legal-section--dark {
  background: var(--xh-ink);
  color: rgba(248, 239, 223, 0.82);
}

.legal-section--light {
  background: var(--xh-cream);
  color: var(--xh-copy-dark);
}

.legal-section h2 {
  max-width: 940px;
  margin-bottom: 40px;
  font-size: clamp(42px, 5.4vw, 68px);
}

.legal-section h3 {
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  font-family: var(--xh-display);
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.legal-section--dark h3 {
  border-color: var(--xh-rule-light);
  color: var(--xh-copy-light);
}

.legal-section--light h3 {
  border-color: var(--xh-rule-dark);
  color: var(--xh-ink);
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  max-width: 1040px;
}

.legal-section p {
  margin: 0 0 20px;
}

.legal-section ul,
.legal-section ol {
  margin: 20px 0 26px;
  padding-left: 1.4em;
}

.legal-section li {
  margin: 8px 0;
  padding-left: 0.35em;
}

.legal-section--dark strong,
.legal-section--dark h2 {
  color: var(--xh-copy-light);
}

.legal-notice {
  max-width: 980px;
  margin: 34px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--xh-teal);
  background: rgba(37, 139, 135, 0.11);
}

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

.legal-hub {
  min-height: 72vh;
  padding: clamp(80px, 10vw, 150px) 0;
  background: var(--xh-cream);
}

.legal-hub__inner {
  width: min(100% - 64px, 1120px);
  margin: 0 auto;
}

.legal-hub h1 {
  color: var(--xh-ink);
  font-size: clamp(58px, 8vw, 98px);
}

.legal-hub__lead {
  max-width: 760px;
  margin: 30px 0 58px;
  color: var(--xh-copy-dark);
  font-size: clamp(20px, 2vw, 26px);
}

.legal-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.legal-hub__card {
  min-height: 280px;
  padding: 34px;
  border: 1px solid rgba(29, 42, 58, 0.16);
  background: var(--xh-ink);
  color: var(--xh-copy-light);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.legal-hub__card:hover {
  background: #26394e;
  color: white;
  transform: translateY(-4px);
}

.legal-hub__card h2 {
  margin-bottom: 24px;
  font-size: clamp(30px, 3vw, 42px);
}

.legal-hub__card p {
  margin: 0;
  color: rgba(248, 239, 223, 0.76);
}

.site-footer {
  background: var(--xh-ink);
  color: rgba(248, 239, 223, 0.76);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr 0.45fr;
  gap: 60px;
  width: min(100% - 64px, 1440px);
  margin: 0 auto;
  padding: 62px 0;
}

.site-footer__title {
  color: var(--xh-copy-light);
  font-size: clamp(42px, 5vw, 70px);
}

.site-footer p {
  margin: 0 0 12px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    display: flex;
    min-height: auto;
    padding: 24px 0;
    flex-direction: column;
    gap: 18px;
  }

  .site-brand {
    order: -1;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .legal-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .legal-hero__visual {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .legal-hub__grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    gap: 28px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header__inner,
  .legal-hero__inner,
  .legal-section__inner,
  .legal-hub__inner,
  .site-footer__inner {
    width: min(100% - 36px, 1120px);
  }

  .site-nav {
    gap: 12px 18px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .legal-hero__inner {
    gap: 48px;
    padding: 58px 0 70px;
  }

  .legal-hero h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .legal-hero__lead,
  .legal-hero__copy,
  .legal-actions {
    margin-top: 30px;
  }

  .legal-button {
    width: 100%;
  }

  .legal-section__inner {
    padding: 62px 0;
  }

  .legal-section h2 {
    margin-bottom: 28px;
  }

  .legal-hub__card {
    min-height: 220px;
  }
}

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

  .legal-hub__card {
    transition: none;
  }
}
