:root {
  color: #251811;
  background: #f2e3d3;
  font-family: 'Manrope', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 85% 8%, rgb(232 185 120 / 28%), transparent 28rem),
    linear-gradient(145deg, #fffaf4, #f2e3d3);
  color: #251811;
  font-size: 15px;
  line-height: 1.75;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid #9d6c38;
  outline-offset: 4px;
}

.legal-shell {
  width: min(100% - 40px, 920px);
  margin-inline: auto;
  padding-block: 24px 64px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  text-decoration: none;
}

.legal-brand img {
  width: 38px;
  height: 38px;
}

.legal-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgb(91 58 36 / 18%);
  border-radius: 999px;
  background: rgb(255 253 249 / 68%);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.legal-back:hover {
  background: #f5c981;
  transform: translateY(-2px);
}

.legal-hero {
  padding: 76px 0 45px;
  border-bottom: 1px solid rgb(91 58 36 / 16%);
}

.legal-kicker {
  margin: 0;
  color: #925f31;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-title {
  max-width: 760px;
  margin: 12px 0 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 8vw, 70px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.legal-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgb(37 24 17 / 72%);
  font-size: 16px;
}

.legal-notice {
  display: grid;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgb(157 108 56 / 22%);
  border-radius: 18px 7px 18px 7px;
  background: rgb(255 250 244 / 74%);
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.legal-notice__badge {
  height: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #2c1b12;
  color: #f5c981;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.legal-notice p {
  margin: 0;
  color: rgb(37 24 17 / 72%);
  font-size: 13px;
  line-height: 1.65;
}

.legal-content {
  display: grid;
  padding-top: 43px;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 70px;
}

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

.legal-section + .legal-section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid rgb(91 58 36 / 12%);
}

.legal-section h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.legal-section h3 {
  margin: 24px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-section p,
.legal-section ul {
  margin: 13px 0 0;
  color: rgb(37 24 17 / 76%);
}

.legal-section ul {
  padding-left: 20px;
}

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

.legal-placeholder {
  display: inline;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgb(232 185 120 / 25%);
  color: #704622;
  font-weight: 700;
}

.legal-toc {
  position: sticky;
  top: 24px;
  height: fit-content;
  padding: 21px;
  border: 1px solid rgb(91 58 36 / 14%);
  border-radius: 22px 8px 22px 8px;
  background: rgb(255 250 244 / 66%);
}

.legal-toc__title {
  margin: 0 0 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding-block: 6px;
  color: rgb(37 24 17 / 68%);
  font-size: 12px;
  text-decoration: none;
}

.legal-toc a:hover {
  color: #251811;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid rgb(91 58 36 / 16%);
  color: rgb(37 24 17 / 56%);
  font-size: 11px;
}

@media (max-width: 767px) {
  .legal-shell {
    width: min(100% - 36px, 920px);
    padding-block: 18px 42px;
  }

  .legal-brand {
    font-size: 18px;
  }

  .legal-back span:first-child {
    display: none;
  }

  .legal-hero {
    padding: 54px 0 34px;
  }

  .legal-title {
    font-size: clamp(39px, 13vw, 56px);
  }

  .legal-lead {
    font-size: 14px;
  }

  .legal-notice {
    grid-template-columns: 1fr;
  }

  .legal-notice__badge {
    width: fit-content;
  }

  .legal-content {
    padding-top: 34px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-toc {
    position: static;
    grid-row: 1;
  }

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

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}
