:root {
  --paper: #f3eee1;
  --paper-soft: #faf7ef;
  --paper-deep: #e8e0cc;
  --ink: #161c1f;
  --ink-soft: #344044;
  --muted: #687276;
  --copper: #a8541a;
  --copper-deep: #7b3d14;
  --gold: #b89447;
  --gold-soft: #d4b26c;
  --green: #2e6b4e;
  --line: rgba(22, 28, 31, 0.12);
  --line-strong: rgba(22, 28, 31, 0.2);
  font-size: 62.5%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 5% 0%, rgba(168, 84, 26, 0.1), transparent 34rem),
    radial-gradient(circle at 95% 18%, rgba(46, 107, 78, 0.08), transparent 36rem),
    #ddd4bd;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--copper-deep);
  text-decoration-color: rgba(168, 84, 26, 0.35);
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--copper);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 0.3rem solid rgba(168, 84, 26, 0.35);
  outline-offset: 0.4rem;
  border-radius: 0.4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 0.1rem solid rgba(22, 28, 31, 0.1);
  background: rgba(243, 238, 225, 0.94);
  backdrop-filter: blur(1.6rem);
}

.site-header__inner {
  width: min(118rem, calc(100% - 4rem));
  min-height: 7.2rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
}

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

.brand__mark {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  box-shadow: 0 0.5rem 1.4rem rgba(22, 28, 31, 0.18);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0.3rem;
  border: 0.1rem solid rgba(212, 178, 108, 0.55);
  border-radius: 0.7rem;
}

.brand__name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand__tag {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-nav a {
  padding: 0.8rem 1.1rem;
  border-radius: 0.8rem;
  color: var(--ink-soft);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: rgba(168, 84, 26, 0.1);
  color: var(--copper-deep);
}

.site-nav .site-nav__app {
  margin-left: 0.4rem;
  background: var(--ink);
  color: var(--paper);
}

.site-nav .site-nav__app:hover {
  background: var(--copper-deep);
  color: #fff;
}

.hero {
  width: min(118rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: 8rem 0 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(28rem, 0.7fr);
  gap: 7rem;
  align-items: end;
}

.eyebrow {
  color: var(--copper-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 82rem;
  margin-top: 1.4rem;
  font-size: clamp(4.4rem, 7vw, 8.2rem);
}

.hero__intro {
  max-width: 76rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: 1.9rem;
  line-height: 1.65;
}

.hero__meta {
  border-top: 0.1rem solid var(--line-strong);
  padding-top: 2rem;
}

.hero__meta-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 0.1rem solid var(--line);
  font-size: 1.3rem;
}

.hero__meta-row span:first-child {
  color: var(--muted);
}

.hero__meta-row strong {
  text-align: right;
}

.plain-summary {
  width: min(118rem, calc(100% - 4rem));
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0.1rem solid var(--line-strong);
  border-radius: 1.8rem;
  overflow: hidden;
  background: rgba(250, 247, 239, 0.72);
  box-shadow: 0 1.8rem 5rem rgba(22, 28, 31, 0.07);
}

.plain-summary__item {
  min-height: 14rem;
  padding: 2.2rem;
  border-right: 0.1rem solid var(--line);
}

.plain-summary__item:last-child {
  border-right: 0;
}

.plain-summary__number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  line-height: 1;
}

.plain-summary__title {
  margin-top: 2rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.plain-summary__text {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.55;
}

.legal-layout {
  width: min(118rem, calc(100% - 4rem));
  margin: 0 auto;
  padding-bottom: 8rem;
  display: grid;
  grid-template-columns: 26rem minmax(0, 78rem);
  justify-content: space-between;
  gap: 7rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: 10rem;
  padding: 2rem;
  border: 0.1rem solid var(--line);
  border-radius: 1.4rem;
  background: rgba(250, 247, 239, 0.72);
}

.toc__title {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legal-toc;
}

.toc li {
  counter-increment: legal-toc;
}

.toc a {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a::before {
  content: counter(legal-toc, decimal-leading-zero);
  color: var(--copper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.toc a:hover {
  color: var(--copper-deep);
}

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

.notice {
  margin-bottom: 3.6rem;
  padding: 2rem 2.2rem;
  border: 0.1rem dashed rgba(168, 84, 26, 0.45);
  border-radius: 1.4rem;
  background: rgba(168, 84, 26, 0.07);
  color: var(--ink-soft);
  font-size: 1.4rem;
}

.notice strong {
  color: var(--copper-deep);
}

.legal-section {
  padding: 0 0 4.6rem;
  border-bottom: 0.1rem solid var(--line);
  margin-bottom: 4.6rem;
}

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

.section-kicker {
  margin-bottom: 0.9rem;
  color: var(--copper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.7rem, 4vw, 4rem);
}

h3 {
  margin-top: 2.7rem;
  font-size: 2rem;
  letter-spacing: -0.01em;
}

p {
  margin: 1.4rem 0 0;
}

.legal-section ul,
.legal-section ol {
  margin: 1.5rem 0 0;
  padding-left: 2.2rem;
}

.legal-section li {
  margin: 0.8rem 0;
  padding-left: 0.4rem;
}

.definition-list {
  margin: 2rem 0 0;
  display: grid;
  gap: 1.2rem;
}

.definition-list > div {
  padding: 1.6rem 1.8rem;
  border-left: 0.3rem solid var(--gold);
  background: rgba(250, 247, 239, 0.72);
}

.definition-list dt {
  font-weight: 800;
}

.definition-list dd {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.callout {
  margin-top: 2.2rem;
  padding: 2rem;
  border-radius: 1.4rem;
  background: var(--ink);
  color: var(--paper);
}

.callout--green {
  background: var(--green);
}

.callout__title {
  color: var(--gold-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.callout p {
  margin-top: 0.8rem;
}

.contact-card {
  margin-top: 2rem;
  padding: 2.4rem;
  border: 0.1rem solid var(--line-strong);
  border-radius: 1.6rem;
  background: var(--paper-soft);
}

.contact-card__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.contact-card__actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button-link {
  min-height: 4.4rem;
  padding: 1rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.1rem solid var(--line-strong);
  border-radius: 0.9rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.button-link--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button-link--primary:hover {
  background: var(--copper-deep);
  color: #fff;
}

.site-footer {
  border-top: 0.1rem solid rgba(22, 28, 31, 0.12);
  background: var(--ink);
  color: var(--paper);
}

.site-footer__inner {
  width: min(118rem, calc(100% - 4rem));
  min-height: 12rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.site-footer__copy {
  color: rgba(243, 238, 225, 0.72);
  font-size: 1.25rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.8rem;
}

.site-footer a {
  color: var(--gold-soft);
  font-size: 1.25rem;
}

@media (max-width: 86rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__meta {
    max-width: 52rem;
  }

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

  .plain-summary__item:nth-child(2) {
    border-right: 0;
  }

  .plain-summary__item:nth-child(-n + 2) {
    border-bottom: 0.1rem solid var(--line);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .toc {
    position: static;
  }

  .toc ol {
    columns: 2;
    column-gap: 3rem;
  }

  .legal-content {
    max-width: 78rem;
  }
}

@media (max-width: 62rem) {
  .site-header__inner {
    width: min(100% - 2.8rem, 118rem);
    min-height: 6.4rem;
  }

  .brand__tag {
    display: none;
  }

  .site-nav a {
    display: none;
  }

  .site-nav a[aria-current="page"],
  .site-nav .site-nav__app {
    display: inline-flex;
  }

  .hero,
  .plain-summary,
  .legal-layout,
  .site-footer__inner {
    width: min(100% - 2.8rem, 118rem);
  }

  .hero {
    padding: 5.6rem 0 3.8rem;
  }

  .hero__intro {
    font-size: 1.7rem;
  }

  .plain-summary {
    margin-bottom: 3.2rem;
  }

  .plain-summary__item {
    min-height: 12.5rem;
    padding: 1.8rem;
  }

  .toc ol {
    columns: 1;
  }

  .legal-layout {
    padding-bottom: 5rem;
  }

  .site-footer__inner {
    padding: 2.8rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 42rem) {
  .site-nav a[aria-current="page"] {
    display: none;
  }

  h1 {
    font-size: 4.2rem;
  }

  .plain-summary {
    grid-template-columns: 1fr;
  }

  .plain-summary__item,
  .plain-summary__item:nth-child(2) {
    border-right: 0;
    border-bottom: 0.1rem solid var(--line);
  }

  .plain-summary__item:last-child {
    border-bottom: 0;
  }

  .contact-card__actions {
    flex-direction: column;
  }

  .button-link {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 1.2rem;
  }

  .site-header,
  .toc,
  .plain-summary,
  .site-footer,
  .contact-card__actions {
    display: none;
  }

  .hero,
  .legal-layout {
    width: 100%;
    display: block;
    padding: 2rem 0;
  }

  .hero__meta {
    margin-top: 2rem;
  }

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

  .legal-section {
    break-inside: avoid;
  }
}
