@import url("https://fonts.googleapis.com/css2?family=Gilda+Display&family=Hanken+Grotesk:wght@300;400;500;600&display=swap");

:root {
  --red: #a52422;
  --cream: #fffbf2;
  --ink: #6d1916;
  --line: rgba(165, 36, 34, 0.22);
  --wash: rgba(165, 36, 34, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--red);
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

.legal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.legal-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 72px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-nav a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  font-family: "Gilda Display", serif;
  font-weight: 400;
  line-height: 1.04;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6rem);
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
}

h3 {
  margin: 34px 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

p,
li {
  font-size: 1rem;
}

.lede {
  margin: 0;
  max-width: 680px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.meta {
  margin-top: 22px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding-top: 54px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.toc a {
  display: block;
  padding: 7px 0;
  text-decoration: none;
  font-size: 0.92rem;
}

.legal-section {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  overflow-wrap: anywhere;
}

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

.legal-section p:first-child {
  margin-top: 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.notice {
  background: var(--wash);
  border-left: 2px solid var(--red);
  padding: 16px 18px;
  margin: 20px 0;
}

.notice p {
  margin: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.table th,
.table td {
  border-top: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.table th {
  font-weight: 600;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq-item h3 {
  margin-top: 0;
}

.muted {
  opacity: 0.78;
}

@media (max-width: 820px) {
  .legal-shell {
    width: min(100% - 24px, 720px);
    padding-top: 24px;
  }

  .legal-nav,
  .legal-hero,
  .legal-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    margin-bottom: 46px;
  }

  .legal-hero {
    gap: 26px;
    padding-bottom: 38px;
  }

  .toc {
    position: static;
  }

  .table {
    display: block;
    overflow-x: auto;
  }
}
