:root {
  color-scheme: light;
  --paper: #fffaf6;
  --surface: #ffffff;
  --ink: #3b241c;
  --muted: #765f56;
  --line: #eaded8;
  --accent: #ef5143;
  --accent-dark: #c83c31;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(59, 36, 28, 0.1);
  background: rgba(255, 250, 246, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.site-footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.055em;
}

.brand small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
}

.back-link {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.document-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 8%, rgba(239, 81, 67, 0.12), transparent 33%),
    var(--surface);
}

.hero-inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 92px 0 82px;
  animation: enter 420ms ease-out both;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.document-date {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.lead {
  max-width: 850px;
  margin: 32px 0 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
}

.document-layout {
  display: grid;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  grid-template-columns: 230px minmax(0, 780px);
  gap: clamp(42px, 8vw, 100px);
  padding: 72px 0 96px;
}

.contents {
  align-self: start;
  position: sticky;
  top: 110px;
}

.contents > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contents nav {
  display: grid;
  gap: 9px;
}

.contents a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.contents a:hover,
.contents a:focus-visible {
  color: var(--accent-dark);
  transform: translateX(3px);
}

.document-copy > section {
  padding: 0 0 52px;
  scroll-margin-top: 112px;
}

.document-copy > section + section {
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 26px;
  font-size: clamp(27px, 3.2vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 > span {
  display: inline-block;
  width: 34px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  vertical-align: 0.45em;
}

h3 {
  margin: 36px 0 12px;
  font-size: 21px;
  line-height: 1.35;
}

.document-copy p,
.document-copy li,
.document-copy dd {
  color: #513a31;
}

.document-copy p {
  margin: 0 0 18px;
}

.document-copy ul {
  margin: 18px 0 24px;
  padding-left: 1.25em;
}

.document-copy li {
  margin: 9px 0;
  padding-left: 0.25em;
}

.document-copy li::marker {
  color: var(--accent);
}

.terms,
.details {
  margin: 0;
}

.terms > div,
.details > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 2fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  font-weight: 760;
}

dd {
  margin: 0;
}

.consent {
  margin-top: 24px;
}

.consent > h2 {
  max-width: 680px;
  font-size: clamp(34px, 4.8vw, 56px);
}

.consent-intro {
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  font-size: 19px;
}

.site-footer {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .hero-inner,
  .document-layout,
  .site-footer {
    width: min(calc(100% - 36px), var(--max-width));
  }

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

  .brand small,
  .back-link {
    display: none;
  }

  .hero-inner {
    padding: 64px 0 58px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .lead {
    font-size: 18px;
  }

  .document-layout {
    display: block;
    padding: 44px 0 68px;
  }

  .contents {
    position: static;
    margin: 0 0 46px;
  }

  .contents nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-copy > section {
    padding-bottom: 42px;
  }

  .document-copy > section + section {
    padding-top: 42px;
  }

  .terms > div,
  .details > div {
    display: block;
  }

  .terms dd,
  .details dd {
    margin-top: 6px;
  }

  .site-footer {
    display: grid;
    padding: 28px 0;
  }
}

@media (max-width: 440px) {
  .contents nav {
    grid-template-columns: 1fr;
  }

  h2 > span {
    display: block;
    width: auto;
    margin-bottom: 7px;
    vertical-align: initial;
  }

  .consent-intro {
    padding-left: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

  body,
  .document-hero {
    background: #fff;
  }

  .document-layout,
  .hero-inner {
    display: block;
    width: 100%;
    padding: 24px 0;
  }

  h1 {
    font-size: 42px;
  }
}
