@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DM-Sans-latin-variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "BDO Grotesk";
  src: url("../fonts/BDOGrotesk-Medium-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

:root {
  color-scheme: light;
  --legal-ink: #151a22;
  --legal-text: #313946;
  --legal-muted: #687181;
  --legal-line: #dce1e7;
  --legal-paper: #ffffff;
  --legal-surface: #f5f7f9;
  --legal-accent: #dff26f;
}

* { box-sizing: border-box; }

html { background: var(--legal-surface); }

body.legal-page {
  margin: 0;
  color: var(--legal-text);
  background: var(--legal-surface);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.legal-site-header {
  background: var(--legal-ink);
  color: #fff;
}

.legal-header-content {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-brand { display: inline-flex; flex: 0 0 auto; }
.legal-brand img { display: block; max-width: 166px; height: auto; }

.legal-site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 24px;
}

.legal-site-nav a,
.legal-site-footer a {
  color: inherit;
  text-underline-offset: 0.24em;
}

.legal-site-nav a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.legal-site-nav a:hover,
.legal-site-nav a:focus-visible { color: var(--legal-accent); }

.legal-site-main { padding: clamp(42px, 7vw, 88px) 0; }

.legal-document {
  overflow: hidden;
  background: var(--legal-paper);
  border: 1px solid var(--legal-line);
  box-shadow: 0 18px 44px rgba(21, 26, 34, 0.08);
}

.legal-document-header {
  padding: clamp(32px, 6vw, 76px) clamp(24px, 6vw, 80px);
  color: #fff;
  background: var(--legal-ink);
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--legal-accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-document h1,
.legal-document h2 { font-family: "BDO Grotesk", "DM Sans", Arial, sans-serif; }

.legal-document h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.legal-document-header p:last-child {
  max-width: 720px;
  margin: 24px 0 0;
  color: #e2e5e9;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.legal-section {
  padding: clamp(26px, 4.5vw, 52px) clamp(24px, 6vw, 80px);
  border-top: 1px solid var(--legal-line);
}

.legal-section h2 {
  margin: 0 0 18px;
  color: var(--legal-ink);
  font-size: clamp(1.38rem, 2.8vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.legal-section p { max-width: 850px; margin: 0 0 16px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: #1f598c; font-weight: 650; text-underline-offset: 0.2em; }
.legal-section a:hover, .legal-section a:focus-visible { color: #123d64; }

.legal-definition-list { margin: 0; }
.legal-definition-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 16px 32px;
  padding: 14px 0;
  border-top: 1px solid var(--legal-line);
}
.legal-definition-list > div:first-child { border-top: 0; }
.legal-definition-list dt { color: var(--legal-muted); font-weight: 700; }
.legal-definition-list dd { margin: 0; color: var(--legal-ink); font-weight: 550; }

.legal-location-note { color: var(--legal-muted); font-size: 0.96rem; }

.legal-site-footer {
  padding: 52px 0 26px;
  color: #e8ebef;
  background: var(--legal-ink);
}

.legal-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 40px;
}

.legal-site-footer h2 {
  margin: 0 0 13px;
  color: #fff;
  font-family: "BDO Grotesk", "DM Sans", Arial, sans-serif;
  font-size: 1.24rem;
}

.legal-site-footer p { margin: 0 0 13px; color: #c9d0d8; }
.legal-site-footer section > a, .legal-site-footer nav > a { display: block; width: fit-content; margin-top: 7px; }
.legal-site-footer a:hover, .legal-site-footer a:focus-visible { color: var(--legal-accent); }

.legal-footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.legal-footer-bottom p { margin: 0; color: #aeb7c2; font-size: 0.9rem; }

a:focus-visible { outline: 3px solid var(--legal-accent); outline-offset: 4px; }

@media (max-width: 700px) {
  .legal-site-shell { width: min(100% - 28px, 1120px); }
  .legal-header-content { min-height: auto; padding: 22px 0; align-items: flex-start; flex-direction: column; }
  .legal-site-nav { justify-content: flex-start; }
  .legal-definition-list > div { grid-template-columns: 1fr; gap: 3px; }
  .legal-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
