/* Weft marketing site - editorial paper + ink */

:root {
  --paper: #f6f2eb;
  --paper-2: #ede7dc;
  --paper-3: #e4ddd2;
  --cream: #fffdf8;
  --ink: #1a2744;
  --ink-soft: #2e3f5c;
  --slate: #4a5f7a;
  --muted: #5c6f86;
  --thread: #4a6fa5;
  --thread-light: #7a9bb8;
  --gold: #b8864e;
  --good: #2d7a5f;
  --border: rgba(26, 39, 68, 0.12);
  --border-strong: rgba(26, 39, 68, 0.22);
  --shadow-sm: 0 2px 8px rgba(26, 39, 68, 0.06);
  --shadow-md: 0 12px 40px rgba(26, 39, 68, 0.1);
  --shadow-lg: 0 24px 64px rgba(26, 39, 68, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Figtree", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.35s;
  --dur-med: 0.6s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(20px, 4vw, 40px);
  background: rgba(246, 242, 235, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    height var(--dur-fast) var(--ease-out);
}

.nav.is-scrolled {
  height: 60px;
  background: rgba(255, 253, 248, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out);
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand-logo-weave {
  animation: logo-breathe 4s ease-in-out infinite;
}

@keyframes logo-breathe {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.03); }
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--thread), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 640px) {
  .nav-links a:not(:last-child) { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(72px, 12vw, 120px) 24px clamp(80px, 10vw, 110px);
  text-align: center;
  overflow: hidden;
}

.hero-weave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-weave-svg {
  position: absolute;
  inset: -10% -5%;
  width: 110%;
  height: 120%;
  opacity: 0.9;
}

.weave-warp line {
  animation: warp-drift 28s linear infinite;
}

.weave-weft path {
  animation: weft-slide 22s ease-in-out infinite alternate;
}

@keyframes warp-drift {
  from { transform: translateX(0); }
  to { transform: translateX(40px); }
}

@keyframes weft-slide {
  from { transform: translateX(-30px); }
  to { transform: translateX(30px); }
}

.hero-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(122, 155, 184, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(184, 134, 78, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(74, 111, 165, 0.1), transparent 50%);
  animation: mesh-shift 18s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-2%, -3%) scale(1.04); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  padding: 7px 14px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--thread);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 99px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--thread);
  font-style: italic;
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--slate);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-caption {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Hero stagger entrance */
.hero-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
}

.hero.is-ready .hero-stagger {
  opacity: 1;
  transform: translateY(0);
}

.hero.is-ready .hero-stagger[data-stagger="0"] { transition-delay: 0.05s; }
.hero.is-ready .hero-stagger[data-stagger="1"] { transition-delay: 0.15s; }
.hero.is-ready .hero-stagger[data-stagger="2"] { transition-delay: 0.28s; }
.hero.is-ready .hero-stagger[data-stagger="3"] { transition-delay: 0.4s; }
.hero.is-ready .hero-stagger[data-stagger="4"] { transition-delay: 0.52s; }

.weave-divider {
  display: flex;
  justify-content: center;
  color: var(--thread);
  margin-top: 48px;
  position: relative;
  z-index: 2;
}

.weave-divider svg {
  width: min(200px, 40vw);
  height: 24px;
}

.divider-weave line:nth-child(2) { animation: warp-pulse 2.4s ease-in-out infinite; }
.divider-weave line:nth-child(3) { animation: warp-pulse 2.4s ease-in-out 0.3s infinite; }
.divider-weave line:nth-child(4) { animation: warp-pulse 2.4s ease-in-out 0.6s infinite; }
.divider-weave line:nth-child(5) { animation: warp-pulse 2.4s ease-in-out 0.9s infinite; }
.divider-weave line:nth-child(6) { animation: warp-pulse 2.4s ease-in-out 1.2s infinite; }

@keyframes warp-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50% { opacity: 0.85; transform: scaleY(1.15); }
}

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--cream);
  box-shadow: 0 4px 20px rgba(26, 39, 68, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(26, 39, 68, 0.32);
}

.btn:focus-visible,
.nav-links a:focus-visible,
.dl-card:focus-visible {
  outline: 2px solid var(--thread);
  outline-offset: 3px;
}

.btn-ghost {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px);
  border-color: var(--thread);
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}

.btn-primary:hover .btn-shine {
  transform: translateX(120%);
}

.btn-label {
  position: relative;
  z-index: 1;
}

/* ── Sections ────────────────────────────────────────────────────── */

.section {
  padding: clamp(72px, 10vw, 110px) 0;
}

.section-why {
  background: var(--cream);
}

.section-features {
  background: var(--paper);
}

.section-how {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.section-proctoring {
  background: var(--cream);
}

.section-integrations {
  padding: clamp(56px, 8vw, 88px) 0;
}

.section-download {
  background: var(--ink);
  color: var(--cream);
  padding-bottom: clamp(88px, 12vw, 120px);
}

.section-download .kicker {
  color: var(--thread-light);
}

.section-download h2,
.section-download .section-lead {
  color: var(--cream);
}

.section-download .section-lead {
  opacity: 0.82;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--thread);
  margin-bottom: 14px;
}

.section-head h2,
.integrations-panel h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.section-lead {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.6;
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Cards (Why Weft) ────────────────────────────────────────────── */

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  position: relative;
  padding: 32px 28px 36px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--paper-3);
  line-height: 1;
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--ink);
}

.card p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.65;
}

.card-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--thread), var(--gold));
  transition: width 0.45s var(--ease-out);
}

.card:hover .card-accent {
  width: 100%;
}

/* ── Features grid ───────────────────────────────────────────────── */

.feature-grid,
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature,
.check {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.feature:hover,
.check:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border-radius: 12px;
  color: var(--thread);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3,
.check h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.feature p,
.check p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.check-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(45, 122, 95, 0.15);
}

/* ── Steps ───────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  display: grid;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
}

.step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  background: linear-gradient(145deg, var(--ink) 0%, var(--thread) 100%);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.step-body {
  padding: 8px 0 8px 0;
  border-left: 2px solid var(--border);
  padding-left: 0;
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
}

.step p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.65;
}

@media (max-width: 520px) {
  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step-marker { justify-content: flex-start; }
}

/* ── Integrations ────────────────────────────────────────────────── */

.integrations-panel {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.weave-divider-inline {
  margin: 0 auto 24px;
}

.integrations-lead {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.65;
}

/* ── Download ────────────────────────────────────────────────────── */

.download-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 24px;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: var(--radius);
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.dl-card:not(.dl-card-soon):hover {
  transform: translateY(-4px);
  background: rgba(255, 253, 248, 0.1);
  border-color: rgba(122, 155, 184, 0.45);
}

.dl-card-soon {
  opacity: 0.55;
  cursor: default;
}

.dl-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.1);
  background-size: 22px;
  background-position: center;
  background-repeat: no-repeat;
}

.dl-icon-mac {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fffdf8'%3E%3Cpath d='M18.7 15.1c-.4 1.1-1 2.1-1.7 3.1-.9 1.2-1.7 2.4-3 2.4-1.1 0-1.8-.7-3-.7-1.2 0-2 .8-3 .8-1.3 0-2.2-1.3-3-2.5C2.7 16.2 2 13.4 2 11.5c0-3 1.9-4.6 3.8-4.6 1.1 0 2 .8 3 .8 1 0 1.6-.8 3.2-.8 1.1 0 2.3.6 3.1 1.6-2.7 1.5-2.3 5.4.6 6.6zM15.5 4.5c.5-.6 1-1.6.8-2.5-1 .1-2.1.7-2.7 1.4-.5.6-1 1.6-.9 2.4 1.1.1 2.2-.5 2.8-1.3z'/%3E%3C/svg%3E");
}

.dl-icon-win {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fffdf8'%3E%3Cpath d='M3 5.5l7.5-1v7.2H3V5.5zm0 8.7h7.5v7.3L3 20.5V14.2zm9.2-9.8L21 3v8.7h-8.8V4.4zm0 9.8H21V21l-8.8-1.5V14.2z'/%3E%3C/svg%3E");
}

.dl-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.dl-label {
  font-size: 12px;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dl-os {
  font-size: 16px;
  font-weight: 600;
}

.dl-arrow {
  font-size: 18px;
  opacity: 0.5;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}

.dl-card:hover .dl-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.download-note {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 253, 248, 0.65);
  max-width: 520px;
  margin: 0 auto 32px;
}

.download-cta {
  text-align: center;
}

.section-download .btn-primary {
  background: linear-gradient(135deg, var(--thread) 0%, var(--thread-light) 100%);
  color: var(--ink);
  box-shadow: 0 4px 24px rgba(74, 111, 165, 0.4);
}

/* ── Footer ──────────────────────────────────────────────────────── */

.footer {
  padding: 40px 0 48px;
  background: var(--ink);
  color: rgba(255, 253, 248, 0.7);
  border-top: 1px solid rgba(255, 253, 248, 0.08);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.brand-footer {
  color: var(--cream);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer-links a {
  color: rgba(255, 253, 248, 0.65);
  transition: color var(--dur-fast);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-fineprint {
  font-size: 13px;
  color: rgba(255, 253, 248, 0.45);
  font-style: italic;
}

.footer-fineprint em {
  font-style: normal;
  color: rgba(255, 253, 248, 0.7);
}

/* ── Reduced motion ──────────────────────────────────────────────── */

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

  .hero-stagger,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .weave-warp line,
  .weave-weft path,
  .hero-mesh,
  .divider-weave line,
  .brand-logo-weave {
    animation: none !important;
  }

  .btn,
  .card,
  .feature,
  .check,
  .dl-card,
  .nav,
  .btn-shine,
  .nav-links a::after,
  .card-accent {
    transition: none;
  }

  .btn-primary:hover,
  .btn-ghost:hover,
  .card:hover,
  .feature:hover,
  .check:hover,
  .dl-card:hover {
    transform: none;
  }
}

/* ── Legal pages (Terms / Privacy) ───────────────────────────────────────── */
/* Long-form legal layout, scoped to .legal. Tokens mapped to the site's
   editorial palette so the legal pages match the rest of the site. */
.legal {
  max-width: 760px;
  margin: 3rem auto 4rem;
  padding: 0 24px;
}
.legal a {
  color: var(--thread);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { color: var(--ink); }
.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-header h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.legal-draft-notice {
  background-color: #fff8e6;
  border: 1px solid #e8d9b8;
  color: #6b5a3d;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.legal-draft-notice strong { color: #5a4630; }
.legal-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.legal section { margin-bottom: 2.25rem; }
.legal h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.legal h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.legal p, .legal li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal ul, .legal ol {
  margin: 0.75rem 0 1.25rem 1.25rem;
  padding-left: 0.5rem;
}
.legal li { margin-bottom: 0.5rem; }
.legal .definition {
  background-color: var(--paper-2);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--thread);
  margin: 1.25rem 0;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-soft);
}
.legal th {
  background-color: var(--paper-2);
  font-weight: 600;
  font-family: var(--font-serif);
  color: var(--ink);
}
.legal .contact-box {
  background-color: var(--paper-2);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 2rem;
}
.legal .last-updated {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .legal { margin: 2rem auto 3rem; }
  .legal-header h1 { font-size: 2rem; }
}
