:root {
      --cream: #F4EFE3;
      --cream-2: #EFE8D8;
      --deep: #223C33;
      --deep-2: #1A2E27;
      --accent: #1A6C68;
      --sage: #E3ECDF;
      --sage-line: #CFDDC9;
      --ink: #2B2B26;
      --muted: #6E6759;
      --line: #DDD4BF;
      --paper: #FBF8F0;
}

* {
      box-sizing: border-box;
}

html {
      scroll-behavior: smooth;
}

body {
      margin: 0;
      background: var(--cream);
      color: var(--ink);
      font-family: 'Inter', sans-serif;
      -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
      font-family: 'Fraunces', serif;
      color: var(--deep);
      margin: 0;
      letter-spacing: -0.01em;
}

a {
      color: var(--accent);
      text-decoration: none;
}

a:hover {
      text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
}

.skip-link {
      position: absolute;
      left: -999px;
      top: 0;
      background: var(--deep);
      color: #fff;
      padding: 10px 16px;
      border-radius: 0 0 8px 0;
      z-index: 100;
}

.skip-link:focus {
      left: 0;
}

/* ---------- NAV (matches homepage) ---------- */
#nav {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(244, 239, 227, 0.88);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
}

.nav-inner {
      max-width: 1120px;
      margin: 0 auto;
      padding: 0 24px;
}

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

.nav-brand>.mark {
      display: flex;
      align-items: center;
      gap: 10px;
      font-family: 'Fraunces', serif;
      font-weight: 600;
      font-size: 1.15rem;
      color: var(--deep);
}

.nav-brand>.mark img {
      display: block;
      /* height: 26px; */
      height: auto;
      width: 120px;
}

.nav-links {
      list-style: none;
      display: flex;
      gap: 32px;
      margin: 0;
      padding: 0;
      font-size: 0.93rem;
      font-weight: 500;
}

.nav-links a {
      color: var(--ink);
}

.nav-links a:hover {
      color: var(--accent);
      text-decoration: none;
}

.nav-cta {
      background: var(--deep);
      color: #F4EFE3;
      padding: 10px 20px;
      border-radius: 999px;
      font-size: 0.88rem;
      font-weight: 600;
      white-space: nowrap;
}

.nav-cta:hover {
      background: var(--deep-2);
      text-decoration: none;
}

@media (max-width: 760px) {
      .nav-links {
            display: none;
      }
}

/* ---------- HEADER ---------- */
.legal-header {
      max-width: 900px;
      margin: 0 auto;
      padding: 72px 24px 40px;
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 8px;
}

.eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: var(--accent);
      background: var(--sage);
      border: 1px solid var(--sage-line);
      padding: 6px 14px;
      border-radius: 999px;
      margin-bottom: 22px;
}

.legal-header h1 {
      font-size: clamp(2.1rem, 4.5vw, 3.1rem);
      line-height: 1.1;
      font-weight: 600;
}

.legal-header .sub {
      margin: 18px auto 0;
      max-width: 560px;
      color: var(--muted);
      font-size: 1.02rem;
      line-height: 1.6;
}

.meta-row {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 26px;
      flex-wrap: wrap;
}

.meta-pill {
      font-size: 0.8rem;
      color: var(--muted);
      background: var(--paper);
      border: 1px solid var(--line);
      padding: 6px 13px;
      border-radius: 999px;
}

/* ---------- LAYOUT ---------- */
.legal-wrap {
      max-width: 1080px;
      margin: 0 auto;
      padding: 20px 24px 100px;
      display: grid;
      grid-template-columns: 240px minmax(0, 1fr);
      gap: 56px;
      align-items: start;
}

/* TOC */
.toc {
      position: sticky;
      top: 96px;
}

.toc-label {
      font-size: 0.74rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 14px;
      display: block;
}

.toc ol {
      list-style: none;
      margin: 0;
      padding: 0;
      border-left: 1px solid var(--line);
}

.toc li {
      margin: 0;
}

.toc a {
      display: block;
      padding: 7px 0 7px 16px;
      margin-left: -1px;
      border-left: 2px solid transparent;
      color: var(--muted);
      font-size: 0.87rem;
      line-height: 1.4;
}

.toc a:hover {
      color: var(--accent);
      text-decoration: none;
}

.toc a.active {
      color: var(--deep);
      border-left-color: var(--accent);
      font-weight: 600;
}

@media (max-width: 880px) {
      .legal-wrap {
            grid-template-columns: 1fr;
      }

      .toc {
            position: static;
            border-bottom: 1px solid var(--line);
            padding-bottom: 24px;
            margin-bottom: 8px;
      }

      .toc ol {
            display: flex;
            flex-wrap: wrap;
            gap: 4px 18px;
            border-left: none;
      }

      .toc a {
            padding: 4px 0;
            border-left: none;
      }

      .toc a.active {
            border-left: none;
            text-decoration: underline;
      }
}

/* ARTICLE */
article {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 48px clamp(24px, 5vw, 56px);
}

.lead-note {
      background: var(--sage);
      border: 1px solid var(--sage-line);
      border-radius: 14px;
      padding: 18px 20px;
      font-size: 0.93rem;
      line-height: 1.6;
      color: var(--deep);
      margin-bottom: 44px;
}

.lead-note b {
      font-weight: 700;
}

section.clause {
      padding: 34px 0;
      border-top: 1px solid var(--line);
}

section.clause:first-of-type {
      border-top: none;
      padding-top: 0;
}

.clause-head {
      display: flex;
      align-items: baseline;
      gap: 14px;
      margin-bottom: 14px;
}

.clause-num {
      font-family: 'Fraunces', serif;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--accent);
      flex-shrink: 0;
}

.clause h2 {
      font-size: 1.32rem;
      font-weight: 600;
}

.clause p {
      color: var(--ink);
      line-height: 1.75;
      font-size: 0.98rem;
      margin: 0 0 14px;
}

.clause p:last-child {
      margin-bottom: 0;
}

.clause ul {
      margin: 0 0 14px;
      padding-left: 20px;
      color: var(--ink);
      line-height: 1.75;
      font-size: 0.98rem;
}

.clause ul:last-child {
      margin-bottom: 0;
}

.clause li {
      margin-bottom: 6px;
}

.clause li:last-child {
      margin-bottom: 0;
}

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

.subgrid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin: 6px 0 16px;
}

.subcard {
      background: var(--sage);
      border: 1px solid var(--sage-line);
      border-radius: 12px;
      padding: 16px 18px;
}

.subcard b {
      display: block;
      font-size: 0.92rem;
      color: var(--deep);
      margin-bottom: 4px;
}

.subcard span {
      font-size: 0.87rem;
      color: var(--muted);
      line-height: 1.55;
}

@media (max-width: 560px) {
      .subgrid {
            grid-template-columns: 1fr;
      }
}

.contact-card {
      margin-top: 8px;
      background: var(--deep);
      color: #EFEAD9;
      border-radius: 16px;
      padding: 26px 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
}

.contact-card div b {
      display: block;
      font-family: 'Fraunces', serif;
      font-size: 1.05rem;
      margin-bottom: 4px;
}

.contact-card div span {
      font-size: 0.9rem;
      color: #C9D6C6;
}

.contact-card a {
      background: #F4EFE3;
      color: var(--deep);
      padding: 10px 20px;
      border-radius: 999px;
      font-size: 0.87rem;
      font-weight: 700;
      white-space: nowrap;
}

.contact-card a:hover {
      text-decoration: none;
      background: #fff;
}

/* ---------- FOOTER (matches homepage) ---------- */
footer {
      max-width: 1120px;
      margin: 0 auto;
      padding: 60px 24px 40px;
}

.foot-grid {
      display: grid;
      grid-template-columns: 1.6fr 1fr 1fr 1fr;
      gap: 32px;
      padding-bottom: 32px;
      border-bottom: 1px solid var(--line);
}

.foot-brand .nav-brand {
      height: auto;
      display: flex;
}

.foot-brand .mark {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: 'Fraunces', serif;
      font-weight: 600;
      color: var(--deep);
}

/* .foot-brand img {
      height: 24px;
} */

.foot-brand p {
      margin-top: 14px;
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.6;
      max-width: 280px;
}

.foot-col h4 {
      font-family: 'Inter', sans-serif;
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--deep);
      margin-bottom: 14px;
}

.foot-col ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
}

.foot-col a {
      color: var(--muted);
      font-size: 0.9rem;
}

.foot-col a:hover {
      color: var(--accent);
      text-decoration: none;
}

.foot-bottom {
      padding-top: 24px;
      color: var(--muted);
      font-size: 0.83rem;
}

@media (max-width: 760px) {
      .foot-grid {
            grid-template-columns: 1fr 1fr;
      }

      .foot-brand {
            grid-column: 1 / -1;
      }
}