:root {
  color-scheme: light;
  --ink: #261d18;
  --muted: #6f625a;
  --line: #eadfd8;
  --surface: #fff;
  --soft: #fff7f2;
  --accent: #ff6748;
  --accent-dark: #c83d25;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff9f5 0, #fff 360px);
  font-size: 16px;
  line-height: 1.65;
}

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

a:focus-visible {
  outline: 3px solid rgba(255, 103, 72, 0.28);
  outline-offset: 3px;
  border-radius: 6px;
}

.legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(234, 223, 216, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

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

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

.legal-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.legal-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #ff9f72);
  box-shadow: 0 8px 20px rgba(255, 103, 72, 0.24);
}

.legal-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  font-weight: 750;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.legal-shell {
  padding: 58px 0 72px;
}

.legal-hero {
  max-width: 760px;
  margin-bottom: 30px;
}

.legal-kicker {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.legal-hero > p:not(.legal-kicker) {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-effective {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.legal-summary,
.legal-section {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(71, 46, 31, 0.06);
}

.legal-summary {
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--soft), #fff);
}

.legal-summary strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.legal-section + .legal-section {
  margin-top: 16px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.legal-section h3 {
  margin: 22px 0 6px;
  font-size: 1.05rem;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  margin-top: 10px;
  margin-bottom: 0;
}

.legal-section li + li {
  margin-top: 7px;
}

.legal-callout {
  padding: 16px 18px;
  margin-top: 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--soft);
}

.legal-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.legal-footer-inner {
  display: flex;
  min-height: 96px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 760px) {
  .legal-header {
    position: static;
  }

  .legal-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .legal-nav {
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .legal-shell {
    padding-top: 38px;
  }

  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}
