@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext-400-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-400-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/inter-tight-latin-ext-500-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/inter-tight-latin-500-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-navy: #1d2348;
  --brand-navy-dark: #11142d;
  --brand-navy-mid: #343961;
  --brand-coral: #FE7A5F;
  --brand-coral-dark: #984F5D;
  --brand-coral-soft: #FCE8E3;
  --paper: #fafaf7;
  --paper-deep: #f1f0eb;
  --surface: #ffffff;
  --ink: #17192e;
  --ink-soft: #3f425b;
  --muted: #737585;
  --muted-readable: #6b6d7c;
  --faint: #a7a8b2;
  --brand-coral-ink: #984F5D;
  --line: rgba(29, 35, 72, 0.13);
  --line-strong: rgba(29, 35, 72, 0.23);
  --inverse: #ffffff;
  --shadow-control: 0 6px 18px rgba(17, 20, 45, 0.09);
  --radius-control: 9px;
  --container: 1240px;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
p,
ul,
dl,
dd {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--brand-coral-ink);
  outline-offset: 3px;
}

::selection {
  background: var(--brand-coral-soft);
  color: var(--brand-navy);
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--brand-navy);
  color: var(--inverse);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-coral {
  background: var(--brand-coral);
  color: var(--brand-navy-dark);
}

.button-coral:hover {
  background: var(--brand-coral-dark);
  color: var(--inverse);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.nav-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: auto;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 18px;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 550;
}

.nav-links a:hover,
.nav-login:hover {
  color: var(--brand-navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-login {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-cta {
  min-height: 42px;
  padding-inline: 15px;
  font-size: 0.82rem;
}

.legal-hero {
  border-bottom: 1px solid var(--line);
}

.legal-hero-grid {
  display: grid;
  min-height: 510px;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 96px;
  align-items: end;
  padding: 92px 0 74px;
}

.document-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.document-kicker::before {
  width: 30px;
  height: 1px;
  background: var(--brand-coral);
  content: "";
}

.legal-hero h1 {
  max-width: 780px;
  margin-top: 25px;
  color: var(--brand-navy-dark);
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.legal-lead {
  max-width: 700px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.68;
}

.document-stamp {
  display: grid;
  align-self: stretch;
  align-content: space-between;
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.document-stamp-label {
  color: var(--muted-readable);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-stamp-number {
  color: var(--brand-coral);
  font-family: var(--font-display);
  font-size: clamp(7rem, 13vw, 11.5rem);
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.72;
}

.document-stamp-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.document-stamp-meta dt {
  color: var(--muted-readable);
}

.document-stamp-meta dd {
  color: var(--ink-soft);
  font-weight: 600;
}

.legal-main {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(64px, 8vw, 124px);
  align-items: start;
  padding: 90px 0 132px;
}

.toc {
  position: sticky;
  top: 112px;
  padding-top: 17px;
  border-top: 2px solid var(--brand-navy);
}

.toc-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--brand-navy);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
}

.toc-title::-webkit-details-marker {
  display: none;
}

.toc-toggle {
  display: none;
  color: var(--brand-coral-ink);
  font-size: 0.86rem;
  transition: transform 160ms ease;
}

.toc ol {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: legal-toc;
}

.toc li {
  counter-increment: legal-toc;
  border-top: 1px solid var(--line);
}

.toc a {
  display: grid;
  min-height: 44px;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: baseline;
  padding: 10px 0;
  color: var(--muted-readable);
  font-size: 0.75rem;
  line-height: 1.4;
  transition: color 160ms ease, padding-left 160ms ease;
}

.toc a::before {
  color: var(--muted-readable);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  content: counter(legal-toc, decimal-leading-zero);
}

.toc a:hover {
  padding-left: 3px;
  color: var(--brand-coral-ink);
}

.legal-article {
  min-width: 0;
  max-width: 820px;
}

.article-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 0 26px;
  color: var(--muted-readable);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
}

.article-intro strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.article-intro a {
  color: var(--brand-coral-ink);
  font-weight: 700;
}

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

.legal-section:last-child {
  padding-bottom: 0;
}

.legal-section h2 {
  max-width: 680px;
  color: var(--brand-navy-dark);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.legal-section h2 + p,
.legal-section h2 + ul {
  margin-top: 20px;
}

.legal-section p,
.legal-section li {
  max-width: 750px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.legal-section ul {
  display: grid;
  gap: 11px;
  margin-bottom: 0;
  padding-left: 20px;
}

.legal-section li {
  padding-left: 6px;
}

.legal-section li::marker {
  color: var(--brand-coral-dark);
}

.legal-section strong {
  color: var(--ink);
  font-weight: 650;
}

.legal-section a {
  border-bottom: 1px solid var(--brand-coral);
  color: var(--brand-coral-ink);
  font-weight: 600;
}

.legal-section a:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  padding: 62px 0 44px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .brand img {
  height: 27px;
}

.footer-brand p {
  margin-top: 18px;
  color: var(--muted-readable);
  font-size: 0.76rem;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 60px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.69rem;
}

.footer-column a {
  color: var(--muted-readable);
  font-size: 0.72rem;
}

.footer-column a:hover,
.footer-column a[aria-current="page"] {
  color: var(--brand-navy);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-readable);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.footer-bottom nav {
  display: flex;
  gap: 20px;
}

.article-intro a,
.legal-section a,
.footer-column a {
  overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
}

@media (max-width: 980px) {
  .legal-hero-grid {
    min-height: 450px;
    grid-template-columns: minmax(0, 1.25fr) minmax(210px, 0.55fr);
    gap: 54px;
  }

  .legal-main {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 58px;
  }
}

@media (max-width: 880px) {
  .container {
    width: min(100% - 40px, var(--container));
  }

  .legal-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 58px;
    padding: 82px 0 62px;
  }

  .document-stamp {
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: end;
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .document-stamp-label {
    align-self: start;
  }

  .document-stamp-number {
    justify-self: end;
    font-size: 8rem;
  }

  .document-stamp-meta {
    grid-column: 1 / -1;
    width: 100%;
  }

  .legal-main {
    grid-template-columns: 1fr;
    gap: 64px;
    padding: 72px 0 104px;
  }

  .toc {
    position: static;
  }

  .toc-title {
    min-height: 44px;
    align-items: center;
    cursor: pointer;
  }

  .toc-toggle {
    display: inline-block;
  }

  .toc[open] .toc-toggle {
    transform: rotate(45deg);
  }

  .toc ol {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .nav-row {
    min-height: 66px;
  }

  .brand img {
    height: 27px;
  }

  .legal-hero-grid {
    gap: 44px;
    padding: 64px 0 50px;
  }

  .legal-hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.5rem);
  }

  .legal-lead {
    margin-top: 24px;
  }

  .document-stamp {
    grid-template-columns: 1fr auto;
  }

  .document-stamp-number {
    font-size: 6.6rem;
  }

  .legal-main {
    gap: 52px;
    padding: 58px 0 84px;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .article-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .legal-section {
    padding: 39px 0 41px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .skip-link,
  .toc,
  footer {
    display: none;
  }

  body {
    background: var(--surface);
    color: var(--ink);
  }

  .container {
    width: 100%;
  }

  .legal-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 0 0 32px;
  }

  .document-stamp {
    display: none;
  }

  .legal-main {
    display: block;
    padding: 24px 0 0;
  }

  .legal-article {
    max-width: none;
  }

  .legal-section {
    break-inside: avoid;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
