@font-face { font-family: 'Mencken'; src: url('../assets/fonts/mencken-head-compress.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Paramount'; src: url('../assets/fonts/paramount-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Paramount'; src: url('../assets/fonts/paramount-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Paramount'; src: url('../assets/fonts/paramount-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #040914;
  --muted: rgba(4, 9, 20, .62);
  --paper: #f0ebe7;
  --blue: #315dbc;
  --line: rgba(4, 9, 20, .16);
  --serif: 'Mencken', 'Arial Narrow', serif;
  --sans: 'Paramount', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; background: var(--paper); }
body {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) max(1.5rem, env(safe-area-inset-right)) calc(6rem + env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  text-wrap: pretty;
}
::selection { background: var(--blue); color: #fff; }

a { color: var(--blue); overflow-wrap: anywhere; touch-action: manipulation; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1 {
  margin: 0 0 .5rem;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: .92;
  letter-spacing: .018em;
  text-transform: uppercase;
  font-weight: 700;
  text-wrap: balance;
}
.doc-meta {
  margin: 0 0 3rem;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h2 {
  margin: 2.8rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 700;
  scroll-margin-top: 2rem;
}
h3 {
  margin: 1.8rem 0 .5rem;
  font-size: 1.02rem;
  font-weight: 700;
  scroll-margin-top: 2rem;
}
p { margin: 0 0 1rem; }
.note {
  margin-top: 2.5rem;
  padding: 1.1rem 1.25rem;
  color: var(--muted);
  border-left: 3px solid var(--blue);
  background: rgba(49, 93, 188, .07);
  font-size: .94rem;
}

ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: .35rem; }

table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .88rem;
  line-height: 1.55;
}
th, td {
  padding: .7rem .8rem .7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  min-width: 9rem;
}
th {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom-color: rgba(4, 9, 20, .34);
}

.legal-back {
  position: fixed;
  z-index: 20;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(4, 9, 20, .22);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(240, 235, 231, .85);
  backdrop-filter: blur(14px);
  font: 400 1.5rem/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(4, 9, 20, .08);
  transition: color .25s, background-color .25s, border-color .25s, transform .25s;
}
.legal-back:hover { color: var(--paper); background: var(--blue); border-color: var(--blue); transform: rotate(90deg); }
.legal-back:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 600px) { html, body { width: 100%; max-width: 100%; overflow-x: hidden; } body { padding-inline: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .legal-back { transition: none; } }
