:root {
  --paper: #f2efe7;
  --ink: #11110f;
  --white: #fffdf7;
  --blue: #1745b8;
  --red: #e53a2f;
  --yellow: #f2bd16;
  --line: rgba(17, 17, 15, 0.28);
  --display: "Unbounded", sans-serif;
  --body: "Onest", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  border: 1px solid var(--ink);
  content: "";
  pointer-events: none;
}

::selection { color: var(--ink); background: var(--yellow); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--yellow); }
::-webkit-scrollbar-thumb { border: 3px solid var(--yellow); background: var(--ink); }

a, button { color: inherit; }
button { font: inherit; }
a { text-underline-offset: 0.24em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; box-shadow: 0 0 0 6px var(--white); }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 220ms var(--ease-out);
}

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

.policy-header {
  min-height: 5.25rem;
  padding: 0 3.25vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.policy-brand svg { width: 2.5rem; height: 2.5rem; }

.policy-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  font-size: 0.82rem;
  font-weight: 700;
}

.policy-nav > a { text-decoration-thickness: 2px; }

.language-switcher {
  display: flex;
  border: 1px solid var(--ink);
}

.language-switcher button {
  min-width: 3rem;
  min-height: 2.8rem;
  padding: 0 0.75rem;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button:last-child { border-right: 0; }
.language-switcher button[aria-pressed="true"] { background: var(--yellow); }

.policy-hero {
  min-height: calc(100svh - 5.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(26rem, 0.85fr);
  border-bottom: 1px solid var(--ink);
}

.policy-statement {
  min-width: 0;
  padding: clamp(3rem, 7vw, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: var(--ink);
}

.policy-statement h1 {
  max-width: 11ch;
  margin: 0 0 2rem;
  font-family: var(--display);
  font-size: clamp(3.4rem, min(7.2vw, 9svh), 6rem);
  font-weight: 760;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.policy-statement h1 span { color: var(--yellow); }

.policy-statement > p:not(.effective-date) {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 253, 247, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.effective-date {
  margin: 3rem 0 0;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 253, 247, 0.35);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.effective-date time { font-variant-numeric: tabular-nums; }

.policy-facts {
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  background: var(--yellow);
}

.policy-facts article {
  padding: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--ink);
}

.policy-facts article:last-child { border-bottom: 0; }

.policy-facts strong {
  margin-bottom: 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.policy-facts p { max-width: 38ch; margin: 0; font-size: 0.92rem; }

.policy-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.32fr) minmax(0, 1fr);
  align-items: start;
}

.policy-index {
  position: sticky;
  top: 0;
  min-height: 100svh;
  padding: clamp(2rem, 4vw, 4rem) 3.25vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--white);
  background: var(--blue);
  border-right: 1px solid var(--ink);
}

.policy-index strong {
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.policy-index a {
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
}

.policy-index button,
.settings-action {
  min-height: 3.25rem;
  margin-top: 1.5rem;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.policy-index button:hover,
.settings-action:hover { color: var(--white); background: var(--red); transform: translateY(-2px); box-shadow: 4px 6px 14px rgba(17, 17, 15, 0.18); }

.policy-document { padding: clamp(3rem, 7vw, 7rem); }

.policy-document > section {
  max-width: 76rem;
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: 2rem;
}

.policy-document > section:first-child { padding-top: 0; }
.policy-document > section:last-child { border-bottom: 0; }

.policy-document h2 {
  max-width: 16ch;
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.policy-document p { max-width: 72ch; margin: 0 0 1rem; font-size: 1rem; }
.policy-document p:last-child { margin-bottom: 0; }
.policy-document a { color: #0d377d; font-weight: 700; }
.policy-document a:hover { color: var(--red); }

.storage-table { margin-top: 2.5rem; border: 1px solid var(--ink); }

.storage-row {
  display: grid;
  grid-template-columns: minmax(11rem, 0.75fr) minmax(11rem, 0.9fr) minmax(18rem, 1.5fr) minmax(10rem, 0.8fr);
  border-bottom: 1px solid var(--line);
}

.storage-row:last-child { border-bottom: 0; }
.storage-row > * { min-width: 0; padding: 1rem; border-right: 1px solid var(--line); overflow-wrap: anywhere; }
.storage-row > *:last-child { border-right: 0; }
.storage-head { color: var(--white); background: var(--ink); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.storage-row:not(.storage-head) { background: var(--white); font-size: 0.84rem; line-height: 1.45; }
.storage-row:not(.storage-head) strong { font-size: 0.78rem; font-weight: 800; }

.choice-ledger {
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
}

.choice-ledger > div { padding: 2rem; background: var(--white); }
.choice-ledger > div:first-child { border-right: 1px solid var(--ink); }
.choice-ledger strong { display: block; margin-bottom: 0.75rem; font-family: var(--display); font-size: 1rem; text-transform: uppercase; }
.choice-ledger p { font-size: 0.9rem; }
.settings-action { margin-top: 1.25rem; color: var(--white); background: var(--blue); }

.policy-footer {
  min-height: 0;
  padding: clamp(3rem, 6vw, 6rem) 3.25vw 1rem;
  display: grid;
  grid-template-columns: minmax(15rem, 1.25fr) repeat(3, minmax(9rem, .75fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  color: var(--white);
  background: var(--ink);
}

.policy-footer p { max-width: 28ch; margin: 1rem 0 0; color: rgba(255, 253, 247, 0.72); }
.policy-footer nav { display: grid; align-content: start; gap: .55rem; }
.policy-footer nav strong { margin-bottom: .45rem; color: var(--yellow); font-family: var(--display); font-size: .58rem; text-transform: uppercase; }
.policy-footer nav a,
.policy-footer nav button { width: fit-content; padding: 0; color: rgba(255, 253, 247, .74); background: transparent; border: 0; font-size: .8rem; text-decoration: none; cursor: pointer; }
.policy-footer nav a:hover,
.policy-footer nav button:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: .25em; }
.policy-footer__bottom { padding-top: 1rem; grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255, 253, 247, .3); color: rgba(255, 253, 247, .58); font-size: .72rem; }

@media (max-width: 900px) {
  .policy-footer { grid-template-columns: repeat(3, 1fr); }
  .policy-footer__intro { grid-column: 1 / -1; }
  .policy-hero { min-height: 0; grid-template-columns: 1fr; }
  .policy-statement { min-height: 42rem; }
  .policy-facts { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .policy-facts article { padding: 2rem 1.25rem; border-right: 1px solid var(--ink); border-bottom: 0; }
  .policy-facts article:last-child { border-right: 0; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-index { position: relative; min-height: auto; padding: 2rem 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--ink); }
  .policy-index strong, .policy-index button { grid-column: 1 / -1; }
  .policy-index button { width: fit-content; margin-top: 0.75rem; }
  .storage-table { overflow-x: auto; }
  .storage-row { min-width: 58rem; }
}

@media (max-width: 640px) {
  .policy-header { min-height: 4.5rem; padding: 0 1rem; gap: 0.75rem; }
  .policy-brand svg { width: 2.15rem; height: 2.15rem; }
  .policy-nav { gap: 0.75rem; }
  .policy-nav > a:first-child { display: none; }
  .language-switcher button { min-width: 2.6rem; min-height: 2.6rem; padding: 0 0.55rem; }
  .policy-statement { min-height: 36rem; padding: 4rem 1.25rem; }
  .policy-statement h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .policy-facts { grid-template-columns: 1fr; }
  .policy-facts article { border-right: 0; border-bottom: 1px solid var(--ink); }
  .policy-index { grid-template-columns: 1fr; }
  .policy-index strong, .policy-index button { grid-column: auto; }
  .policy-document { padding: 4rem 1.25rem; }
  .policy-document > section { padding: 4rem 0; }
  .policy-document h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .storage-table { overflow: visible; border: 0; }
  .storage-head { display: none; }
  .storage-row { min-width: 0; margin-bottom: 1rem; display: block; border: 1px solid var(--ink); }
  .storage-row > * { display: block; padding: 0.85rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .storage-row > *:last-child { border-bottom: 0; }
  .storage-row span::before { display: block; margin-bottom: 0.25rem; content: attr(data-label); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
  .choice-ledger { grid-template-columns: 1fr; }
  .choice-ledger > div:first-child { border-right: 0; border-bottom: 1px solid var(--ink); }
  .policy-footer { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .policy-footer__intro { grid-column: 1 / -1; }
  .policy-footer nav:last-of-type { grid-column: 1 / -1; }
  .policy-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
