@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f8f2;
  --paper-raised: #fffefa;
  --ink: #292b26;
  --muted: #606459;
  --brand: #fec260;
  --honey: #805300;
  --sage: #e7ebdd;
  --line: rgb(41 43 38 / 16%);
  --charcoal: #20211f;
  --wrap: min(1200px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

img,
svg {
  display: block;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  transform: translateY(-140%);
}

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(248 248 242 / 94%);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 1000;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-logo img {
  width: 36px;
  height: 36px;
}

.brand-logo em {
  color: var(--honey);
  font-style: normal;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
}

.header-nav a {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  background: var(--sage);
  color: var(--ink);
}

.header-nav .home-link {
  margin-left: 8px;
  background: var(--charcoal);
  color: #fff;
}

.header-nav .lang-link {
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.legal-hero {
  overflow: hidden;
  padding: 72px 0 64px;
  background: var(--sage);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: 80px;
  align-items: end;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 1000;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.legal-hero .lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.document-meta {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.document-meta time {
  color: var(--ink);
}

.hero-ledger {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.hero-ledger > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.hero-ledger dt {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-raised);
}

.hero-ledger svg {
  width: 16px;
  height: 16px;
}

.hero-ledger dd {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 740px);
  gap: 88px;
  justify-content: center;
  padding-block: 64px 96px;
}

.toc {
  position: sticky;
  top: 112px;
  align-self: start;
}

.toc strong {
  display: block;
  margin-bottom: 13px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--honey);
  text-decoration: underline;
}

.legal-document {
  min-width: 0;
}

.plain-summary {
  margin-bottom: 64px;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--brand);
  color: #332100;
}

.plain-summary h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.plain-summary p {
  margin: 0;
}

.legal-section {
  scroll-margin-top: 112px;
  padding: 0 0 56px;
  border-bottom: 1px solid var(--line);
}

.legal-section + .legal-section {
  padding-top: 56px;
}

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

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 1000;
  letter-spacing: -0.03em;
  line-height: 1.18;
  text-wrap: balance;
}

.legal-section h3 {
  margin: 32px 0 10px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.legal-section p,
.legal-section ul {
  max-width: 72ch;
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--muted);
}

.legal-section ul {
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 9px;
}

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

.legal-section a,
.contact-panel a {
  color: var(--honey);
  font-weight: 800;
}

.data-table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--muted);
}

.data-table td:first-child {
  color: var(--ink);
  font-weight: 900;
}

.note {
  margin: 26px 0;
  padding: 20px 22px;
  border: 1px solid rgb(128 83 0 / 28%);
  border-radius: 14px;
  background: #fff7e6;
}

.note p:last-child {
  margin-bottom: 0;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: 16px;
  background: var(--charcoal);
  color: #fff;
}

.contact-panel p {
  margin: 0;
  color: #d5d8ce;
}

.contact-panel a {
  flex: none;
  color: var(--brand);
}

@media (max-width: 860px) {
  :root {
    --wrap: min(100% - 32px, 720px);
  }

  .header-inner {
    min-height: 70px;
  }

  .header-nav a:not([aria-current="page"]):not(.home-link):not(.lang-link) {
    display: none;
  }

  .hero-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding: 52px 0;
  }

  .hero-grid {
    gap: 44px;
  }

  .legal-layout {
    gap: 40px;
    padding-block: 40px 72px;
  }

  .toc {
    position: static;
    overflow: hidden;
  }

  .toc strong {
    margin-bottom: 10px;
  }

  .toc ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
  }

  .toc li {
    flex: none;
    scroll-snap-align: start;
  }

  .toc a {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-raised);
    white-space: nowrap;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    font-size: 20px;
  }

  .brand-logo img {
    width: 32px;
    height: 32px;
  }

  .header-nav {
    gap: 3px;
  }

  .header-nav a {
    padding-inline: 11px;
  }

  .header-nav .home-link {
    margin-left: 0;
  }

  .legal-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .plain-summary {
    padding: 22px;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .data-table tr {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .data-table td {
    padding: 3px 0;
    border: 0;
  }
}

@media (max-width: 420px) {
  /* Keep the way back home; the current page is already named by the h1. */
  .header-nav a[aria-current="page"] {
    display: none;
  }
}

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