:root {
  --paper: #f3f5f0;
  --panel: #fbfcf9;
  --ink: #1d2a33;
  --slate: #57646d;
  --rule: #d8ddd1;
  --brass: #99742f;
  --brass-deep: #7c5d23;
  --brass-tint: rgba(153, 116, 47, 0.1);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.wrap {
  width: min(100% - 48px, 1020px);
  margin-inline: auto;
}

h1,
h2,
.serif {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

.label {
  color: var(--slate);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--rule);
  background: rgba(243, 245, 240, 0.92);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mark {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
}

.mark span {
  color: #c9a55a;
  font-family: "Marcellus", Georgia, serif;
  font-size: 16px;
  line-height: 1;
  transform: translateY(1px);
}

.wordmark b {
  font-family: "Marcellus", Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.wordmark small {
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--slate);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.back-link {
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  color: var(--slate);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--brass);
  color: var(--ink);
}

.legal-hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--rule);
}

.legal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 64px;
  align-items: end;
}

.legal-hero h1 {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(44px, 7vw, 76px);
  letter-spacing: -0.015em;
}

.legal-hero .lede {
  max-width: 62ch;
  margin-top: 24px;
  color: var(--slate);
  font-size: 18px;
}

.effective {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}

.effective strong {
  display: block;
  margin-top: 6px;
  font-family: "Marcellus", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 680px);
  gap: 64px;
  align-items: start;
  padding-block: 76px 96px;
}

.contents {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}

.contents ol {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-left: 20px;
  color: var(--slate);
  font-size: 13px;
}

.contents a {
  text-decoration: none;
}

.contents a:hover,
.contents a:focus-visible {
  color: var(--brass-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-copy {
  counter-reset: section;
}

.legal-section {
  scroll-margin-top: 96px;
  padding-block: 34px;
  border-top: 1px solid var(--rule);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 3vw, 33px);
}

.legal-section p,
.legal-section li {
  color: var(--slate);
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
  margin-top: 14px;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

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

.legal-section a {
  color: var(--ink);
  text-decoration-color: var(--brass);
  text-underline-offset: 3px;
}

.legal-section a:hover,
.legal-section a:focus-visible {
  color: var(--brass-deep);
}

.notice {
  margin-top: 18px;
  padding: 20px 22px;
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--brass-tint);
}

footer {
  background: var(--ink);
  color: var(--paper);
}

.foot-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 48px 0 36px;
}

.foot-id b {
  display: block;
  margin-bottom: 8px;
  font-family: "Marcellus", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.foot-id p {
  color: rgba(243, 245, 240, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: flex-end;
}

.foot-links a {
  color: rgba(243, 245, 240, 0.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  color: #c9a55a;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(243, 245, 240, 0.18);
  color: rgba(243, 245, 240, 0.6);
  font-size: 12.5px;
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 36px, 1020px);
  }

  .wordmark small {
    display: none;
  }

  .legal-hero {
    padding-block: 64px 54px;
  }

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

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

  .contents {
    position: static;
  }

  .foot-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .foot-links {
    justify-content: center;
  }

  .foot-base {
    justify-content: center;
    text-align: center;
  }
}

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