/* Static legal pages do not load the React entry point. Keep these brand tokens
   and shell treatments synchronized with their source in src/styles.css.
   The locally served font is the same Latin variable font used by src/main.tsx. */
@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
}

.legal-page {
  --ink: #1f2128;
  --paper: #f4f0e6;
  --redline: #c0352b;
  --carbon: #2c46a6;
  --highlight: #ffe15a;
  --manila: #ecdfbf;
  --text-muted: #55555e;
  --line: #d6cfbf;
  --gutter: 40px;
  --font-sans: "Bricolage Grotesque Variable", Arial, Helvetica, sans-serif;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.55;
}

.legal-page *,
.legal-page *::before,
.legal-page *::after {
  box-sizing: border-box;
}

.legal-page .wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.legal-page a {
  color: inherit;
  text-underline-offset: 5px;
}

.legal-page a:hover {
  text-decoration-color: var(--redline);
}

.legal-page a:focus-visible {
  outline: 3px solid var(--carbon);
  outline-offset: 5px;
}

.legal-page .skip {
  position: fixed;
  top: 5px;
  left: 5px;
  transform: translateY(-150%);
  background: var(--highlight);
  padding: 12px;
  z-index: 10;
}

.legal-page .skip:focus {
  transform: none;
}

.legal-header {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-block: 24px;
}

.legal-page .brand {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-decoration: none;
  white-space: nowrap;
}

.legal-page .brand-dot {
  color: var(--redline);
}

.legal-page .mark {
  flex: none;
  width: 35px;
  height: 35px;
  margin-right: 10px;
}

.legal-page .mark > rect {
  fill: var(--ink);
}

.legal-page .mark > g {
  fill: var(--highlight);
}

.legal-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.legal-header nav a {
  padding-block: 10px;
  text-decoration: none;
}

.legal-header nav a:hover,
.legal-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--redline);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.legal-page .legal-content {
  max-width: 840px;
  padding-top: 64px;
  padding-bottom: 90px;
  overflow-wrap: anywhere;
}

.legal-content .status {
  margin: 0 0 24px;
  color: var(--redline);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.legal-content h1 {
  margin: 0 0 29px;
  font-size: clamp(42px, 4.7vw, 65px);
  font-weight: 800;
  line-height: 1.075;
  letter-spacing: -1.6px;
  text-wrap: balance;
}

.legal-content h2 {
  margin: 48px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-wrap: balance;
}

.legal-content p,
.legal-content ul {
  margin: 0 0 20px;
}

.legal-content li {
  margin-block: 12px;
}

.legal-content li::marker {
  color: var(--redline);
}

.legal-content .note {
  padding: 20px 24px;
  background: var(--manila);
  border-left: 3px solid var(--redline);
}

.legal-content footer {
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 14px;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  gap: 20px;
  padding-block: 25px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.legal-footer .brand {
  color: var(--ink);
  font-size: 20px;
}

@media (max-width: 1000px) {
  .legal-page {
    --gutter: 28px;
  }
}

@media (max-width: 760px) {
  .legal-header {
    min-height: 88px;
  }

  .legal-header .brand {
    font-size: 21px;
  }

  .legal-page .legal-content {
    padding-top: 25px;
    padding-bottom: 58px;
  }

  .legal-content h1 {
    font-size: clamp(40px, 8vw, 62px);
    letter-spacing: -1.2px;
  }

  .legal-content h2 {
    font-size: 25px;
  }

  .legal-content .note {
    padding: 16px;
  }

  .legal-footer .brand {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .legal-page {
    --gutter: 20px;
  }

  .legal-header .mark {
    display: none;
  }

  .legal-content h1 {
    font-size: 37px;
    letter-spacing: -1.1px;
  }
}
