:root {
  color-scheme: light;
  --ink: #123236;
  --muted: #5d7072;
  --line: #dde5e3;
  --paper: #ffffff;
  --soft: #f5f7f5;
  --accent: #f28a2e;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8f7f3;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner,
.legal-shell,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.header-home {
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.legal-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  padding: 54px 0 80px;
}

.legal-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.legal-nav strong {
  display: block;
  margin-bottom: 10px;
}

.legal-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.legal-content {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #c9630e;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  hyphens: auto;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 760px;
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 19px;
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.language-links a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.language-note {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: #fff5e9;
}

.legal-section {
  scroll-margin-top: 100px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.2;
}

.legal-section h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.legal-section p,
.legal-section li {
  max-width: 780px;
}

.legal-section ul {
  padding-left: 22px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--soft);
}

.legal-callout {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.legal-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 820px) {
  .legal-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 34px;
  }

  .legal-nav {
    position: static;
  }

  .legal-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .legal-section {
    max-width: 100%;
    overflow-x: auto;
  }

  .data-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .data-table th,
  .data-table td {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .legal-shell,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .header-home {
    font-size: 13px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 17px;
  }

  .data-table {
    table-layout: fixed;
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 8px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0 76px;
  }
}
