:root {
  --cream: #faf6ef;
  --paper: #fffdf9;
  --ink: #1c1a17;
  --muted: #756f67;
  --coral: #ef6c4d;
  --coral-dark: #c94f34;
  --line: #e9dece;
  --soft: #f5eee4;
  --green: #18824b;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.68 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: var(--coral-dark); text-underline-offset: 3px; }
a:hover { color: var(--coral); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 239, .94);
  backdrop-filter: blur(12px);
}

.header-inner,
.legal-shell,
.legal-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.55px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--coral);
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.header-nav a[aria-current="page"] { color: var(--ink); }
.header-nav .home-link { color: white; background: var(--ink); padding: 9px 14px; border-radius: 10px; }

.legal-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 73% -10%, rgba(239,108,77,.15), transparent 34%),
    var(--cream);
}

.legal-hero-inner {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 62px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 68px);
  line-height: .98;
  letter-spacing: -3.3px;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.updated { margin: 22px 0 0; color: var(--muted); font-size: 13px; font-weight: 650; }

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.promise {
  min-height: 86px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 249, .8);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.promise strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 14px; }
.check { color: var(--green); }

.legal-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: center;
  gap: 72px;
  padding: 62px 0 88px;
}

.toc { align-self: start; position: sticky; top: 102px; }
.toc p { margin: 0 0 12px; color: var(--ink); font-size: 12px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--coral-dark); }

.legal-copy { min-width: 0; }
.legal-copy section { scroll-margin-top: 100px; margin-bottom: 46px; }
.legal-copy h2 { margin: 0 0 14px; font-size: 26px; line-height: 1.2; letter-spacing: -.7px; }
.legal-copy h3 { margin: 28px 0 8px; font-size: 17px; line-height: 1.3; }
.legal-copy p { margin: 0 0 14px; }
.legal-copy ul { margin: 12px 0 16px; padding-left: 23px; }
.legal-copy li { margin: 7px 0; padding-left: 3px; }
.legal-copy strong { font-weight: 780; }

.plain-note,
.important-note {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.important-note { border-color: #efbaa9; background: #fff0eb; }
.plain-note p:last-child,
.important-note p:last-child { margin-bottom: 0; }

.table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
th, td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-size: 12px; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 24px;
  border-radius: 18px;
  background: var(--ink);
  color: white;
}
.contact-card p { margin: 4px 0 0; color: #d7d0c7; font-size: 14px; }
.contact-card a { flex: none; padding: 10px 14px; border-radius: 10px; background: var(--coral); color: white; font-size: 14px; font-weight: 800; text-decoration: none; }

.legal-footer { border-top: 1px solid var(--line); background: var(--paper); }
.legal-footer-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-weight: 700; text-decoration: none; }

@media (max-width: 820px) {
  .legal-shell { grid-template-columns: 1fr; gap: 35px; }
  .toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); column-count: 2; }
  .toc p { column-span: all; }
  .promise-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .header-inner, .legal-shell, .legal-footer-inner { width: min(100% - 28px, 1120px); }
  .legal-hero-inner { width: min(100% - 28px, 780px); padding: 55px 0 45px; }
  h1 { letter-spacing: -2.3px; }
  .header-nav > a:not(.home-link) { display: none; }
  .legal-shell { padding: 42px 0 62px; }
  .toc { column-count: 1; }
  .contact-card, .legal-footer-inner { align-items: flex-start; flex-direction: column; }
  .legal-footer-inner { padding: 28px 0; }
  th, td { min-width: 180px; }
}
