:root {
  --ink: #0A0A0A;
  --yellow: #FFD400;
  --cream: #FFF8DF;
  --sand: #E9DFC1;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page-pad: clamp(20px, 5vw, 64px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 26px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

a {
  color: inherit;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  background: var(--yellow);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

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

p {
  margin: 0 0 1.15em;
}

ul {
  margin: 1.1em 0 1.5em;
  padding-left: 1.35em;
}

li {
  margin-bottom: .55em;
  padding-left: .25em;
}

strong {
  font-weight: 700;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
}

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

.reading-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--sand);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--yellow);
  transition: width .1s linear;
}

.document-header {
  color: var(--cream);
  background: var(--ink);
}

.header-inner,
.document-heading,
.policy-layout,
.footer-inner {
  width: min(1120px, calc(100% - var(--page-pad) * 2));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 248, 223, .4);
  border-radius: 9px;
}

.brand strong {
  color: var(--yellow);
}

.document-type {
  color: rgba(255, 248, 223, .56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.document-heading {
  padding-block: clamp(52px, 7vw, 86px) 42px;
  border-bottom: 1px solid rgba(10, 10, 10, .28);
}

.product-name {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.document-heading h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
}

.document-heading h1::after {
  display: block;
  width: 70px;
  height: 6px;
  margin-top: 22px;
  background: var(--yellow);
  content: "";
}

.document-intro {
  max-width: 780px;
  margin-bottom: 30px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
}

.document-meta {
  display: grid;
  align-items: baseline;
  gap: 4px 16px;
  grid-template-columns: auto auto auto auto;
  width: fit-content;
  font-size: 12px;
}

.document-meta span {
  color: rgba(10, 10, 10, .54);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.document-meta strong {
  margin-right: 20px;
  font-size: 13px;
}

.policy-layout {
  display: grid;
  align-items: start;
  gap: clamp(42px, 7vw, 88px);
  padding-block: clamp(44px, 6vw, 72px) clamp(80px, 10vw, 140px);
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
}

.policy-sidebar {
  position: sticky;
  top: 24px;
}

.toc-box {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid rgba(10, 10, 10, .24);
}

.toc-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

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

.toc-box summary::after {
  content: "+";
  font-size: 17px;
  font-weight: 400;
}

.toc-box[open] summary::after {
  content: "−";
}

.toc {
  display: grid;
  padding-block: 4px 16px;
}

.toc a {
  display: grid;
  padding-block: 6px;
  color: rgba(10, 10, 10, .64);
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  grid-template-columns: 24px 1fr;
  line-height: 1.35;
  text-decoration: none;
}

.toc a span {
  color: rgba(10, 10, 10, .38);
  font-variant-numeric: tabular-nums;
}

.toc a:hover,
.toc a.is-active {
  color: var(--ink);
  background: transparent;
}

.toc a.is-active span {
  color: var(--ink);
}

.sidebar-contact {
  margin-top: 22px;
  color: rgba(10, 10, 10, .58);
  font-size: 11px;
  line-height: 1.55;
}

.policy-content {
  min-width: 0;
  max-width: 780px;
}

.policy-content section {
  scroll-margin-top: 24px;
}

.policy-content section + section {
  margin-top: 56px;
  padding-top: 52px;
  border-top: 1px solid rgba(10, 10, 10, .22);
}

.policy-content h2 {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(29px, 3.5vw, 37px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.policy-content h2 span {
  flex: 0 0 auto;
  color: rgba(10, 10, 10, .5);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.policy-content h3 {
  margin: 34px 0 12px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.policy-content p,
.policy-content li {
  color: rgba(10, 10, 10, .82);
}

.policy-content address {
  padding: 22px 0 0;
  margin-top: 28px;
  border-top: 1px solid rgba(10, 10, 10, .25);
  font-style: normal;
  line-height: 1.8;
}

.document-footer {
  padding-block: 28px;
  color: rgba(255, 248, 223, .58);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .document-type {
    display: none;
  }

  .document-heading {
    padding-block: 44px 32px;
  }

  .document-heading h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .document-meta {
    grid-template-columns: auto 1fr;
    width: 100%;
  }

  .document-meta strong {
    margin-right: 0;
  }

  .policy-layout {
    gap: 34px;
    grid-template-columns: 1fr;
    padding-block: 34px 88px;
  }

  .policy-sidebar {
    position: static;
  }

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

  .sidebar-contact {
    display: none;
  }

  .policy-content h2 {
    gap: 10px;
    margin-bottom: 20px;
    font-size: clamp(27px, 8vw, 34px);
  }

  .policy-content section + section {
    margin-top: 42px;
    padding-top: 38px;
  }

  .policy-content h3 {
    margin-top: 28px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  body {
    color: var(--ink);
    background: var(--cream);
    font-size: 10pt;
    line-height: 1.55;
  }

  .reading-progress,
  .document-header,
  .policy-sidebar,
  .document-footer {
    display: none !important;
  }

  .document-heading,
  .policy-layout {
    width: 100%;
    padding: 0;
  }

  .document-heading {
    margin-bottom: 20px;
  }

  .policy-layout {
    display: block;
  }

  .policy-content {
    max-width: none;
  }

  .policy-content section {
    break-inside: avoid;
  }

  .policy-content section + section {
    margin-top: 22px;
    padding-top: 20px;
  }
}

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

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