:root {
  color: #211d1b;
  background: #f7f3ed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #211d1b;
  --muted: #655e59;
  --soft: #655e59;
  --line: rgba(42, 35, 31, .14);
  --paper: rgba(255, 253, 249, .86);
  --coral: #c83f2e;
  --violet: #7650d8;
  --blue: #236fc8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 10% 3%, rgba(255, 109, 74, .09), transparent 27rem),
    radial-gradient(circle at 90% 18%, rgba(118, 80, 216, .07), transparent 25rem),
    #f7f3ed;
}
a { color: var(--coral); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid rgba(35, 111, 200, .36); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.legal-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 650;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.header-links { display: flex; align-items: center; gap: 22px; }
.header-links a { color: #4f4945; font-size: 13px; font-weight: 720; text-decoration: none; }
.header-links a[aria-current="page"] { color: var(--coral); }

.legal-hero { max-width: 860px; padding: 78px 0 54px; }
.eyebrow { color: var(--coral); font-size: 11px; font-weight: 830; letter-spacing: .13em; text-transform: uppercase; }
h1 {
  max-width: 820px;
  margin: 18px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(49px, 7.2vw, 78px);
  font-weight: 520;
  line-height: .99;
  letter-spacing: -.05em;
}
.lede { max-width: 760px; margin: 0; color: #514b47; font-size: 18px; line-height: 1.72; }
.document-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--soft); font-size: 12px; }
.document-meta strong { color: #514b47; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: space-between;
  gap: 72px;
  padding-bottom: 105px;
}
.toc { position: sticky; top: 28px; align-self: start; padding: 20px 0; border-top: 1px solid var(--line); }
.toc strong { display: block; margin-bottom: 13px; color: #3d3733; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; padding: 5px 0; color: #756d67; font-size: 12px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--coral); }
.legal-document { min-width: 0; }
.notice {
  margin: 0 0 42px;
  padding: 20px 22px;
  color: #504943;
  background: rgba(255, 253, 249, .72);
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.7;
}
.legal-section { padding: 34px 0; border-top: 1px solid var(--line); }
.legal-section:first-of-type { padding-top: 0; border-top: 0; }
h2 { margin: 0 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 600; letter-spacing: -.025em; }
h3 { margin: 26px 0 9px; color: #38322f; font-size: 15px; font-weight: 790; }
p, li, dd { color: var(--muted); font-size: 14px; line-height: 1.78; }
p { margin: 11px 0; }
ul, ol { margin: 13px 0; padding-left: 22px; }
li + li { margin-top: 7px; }
.compact-list li + li { margin-top: 3px; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list strong { display: block; margin-bottom: 3px; color: #3f3935; }
.legal-table-wrap { margin: 22px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.legal-table-wrap:focus-visible { outline: 3px solid rgba(35, 111, 200, .36); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
table { width: 100%; min-width: 650px; border-collapse: collapse; background: rgba(255, 253, 249, .48); }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #453e39; background: rgba(255, 253, 249, .88); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
td { color: var(--muted); font-size: 12px; line-height: 1.65; }
tr:last-child td { border-bottom: 0; }
.callout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.callout-card { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.callout-card h3 { margin-top: 0; }
.callout-card p { margin-bottom: 0; font-size: 13px; }
.support-card { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.support-card + .support-card { margin-top: 14px; }
.support-card h2 { font-size: 25px; }
.support-card a.button-link {
  display: inline-flex;
  margin-top: 9px;
  padding: 11px 15px;
  color: white;
  background: var(--ink);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}
.all-caps { font-weight: 690; letter-spacing: .01em; }

.legal-footer { padding: 42px 0 48px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(2, 1fr); gap: 42px; }
.footer-intro p { max-width: 340px; color: var(--soft); font-size: 12px; }
.footer-column strong { display: block; margin-bottom: 12px; color: #48413d; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-column a { display: block; width: fit-content; margin: 7px 0; color: #6d655f; font-size: 12px; text-decoration: none; }
.footer-bottom { margin-top: 36px; padding-top: 18px; color: #655e59; border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; gap: 18px; }
  .toc { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; padding-bottom: 30px; }
  .toc strong { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .legal-shell { width: calc(100% - 28px); }
  .legal-header { min-height: 70px; }
  .header-links { gap: 13px; }
  .header-links a:first-child { display: none; }
  .brand { font-size: 19px; }
  .brand img { width: 32px; height: 32px; }
  .legal-hero { padding: 56px 0 42px; }
  h1 { font-size: clamp(45px, 14vw, 62px); }
  .lede { font-size: 16px; }
  .toc { grid-template-columns: 1fr; }
  .callout-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-intro { grid-column: auto; }
}

@media print {
  body { background: white; }
  .skip-link, .header-links, .toc, .legal-footer { display: none; }
  .legal-layout { display: block; }
  .legal-hero { padding-top: 30px; }
  .legal-section { break-inside: avoid; }
}

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