:root {
  --ink: #171413;
  --body: #37322e;
  --muted: #6b625a;
  --paper: #fffdf8;
  --warm: #f4eee6;
  --surface: #fffaf2;
  --rose: #f9eef0;
  --line: #d9d0c4;
  --line-strong: #bfae9b;
  --cranberry: #97364b;
  --cranberry-dark: #75283a;
  --forest: #254f3d;
  --gold: #b57a2a;
  --shadow: 0 18px 44px rgba(48, 38, 28, 0.09);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(244, 238, 230, 0.78), rgba(255, 253, 248, 0) 360px),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; text-underline-offset: 3px; }
img { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

a:focus-visible {
  outline: 3px solid rgba(151, 54, 75, 0.34);
  outline-offset: 4px;
}

.page-frame {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 208, 196, 0.82);
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(14px);
}

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

.wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.wordmark img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(151, 54, 75, 0.12);
}

.primary-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.primary-nav { gap: 8px; justify-content: flex-end; }

.primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.primary-nav a:hover {
  background: var(--rose);
  color: var(--cranberry);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(244, 238, 230, 0.82), rgba(255, 253, 248, 0.92)),
    var(--paper);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(151, 54, 75, 0.08), transparent 34%),
    linear-gradient(135deg, transparent 0 58%, rgba(37, 79, 61, 0.06) 58% 100%);
  pointer-events: none;
}

.legal-hero .page-frame {
  position: relative;
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 56px;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 52px;
}

.content-label {
  margin-bottom: 13px;
  color: var(--cranberry);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3.15rem, 5.6vw, 5.35rem);
}

.legal-hero p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-hero-copy {
  max-width: 760px;
}

.hero-facts {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.92);
  box-shadow: var(--shadow);
}

.hero-facts dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.hero-facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.hero-facts div:first-child { padding-top: 0; }
.hero-facts div:last-child { padding-bottom: 0; border-bottom: 0; }

.hero-facts dt {
  margin-bottom: 4px;
  color: var(--cranberry-dark);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 760px);
  gap: 72px;
  align-items: start;
  padding-top: 54px;
  padding-bottom: 86px;
}

.legal-toc {
  position: sticky;
  top: 96px;
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--line-strong);
}

.legal-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--cranberry);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-toc a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, padding-left 180ms ease;
}

.legal-toc a:hover {
  color: var(--cranberry);
  padding-left: 5px;
}

.legal-body {
  min-width: 0;
  font-size: 1rem;
}

.legal-body section {
  padding-bottom: 38px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.legal-body section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-body h2 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(2.05rem, 4vw, 3.25rem);
}

.legal-body h3 {
  margin: 28px 0 12px;
  color: var(--ink);
  font-size: 1.5rem;
}

.legal-body p,
.legal-body li {
  max-width: 72ch;
  color: var(--body);
}

.legal-body ul {
  margin: 18px 0;
  padding: 20px 24px 20px 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(48, 38, 28, 0.05);
}

.legal-body li + li { margin-top: 10px; }

.info-panel,
.company-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-panel {
  margin: 24px 0;
  padding: 24px;
}

.company-stack {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.company-card {
  margin: 0;
  padding: 22px;
}

.company-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.company-list div {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.company-list div:first-child { padding-top: 0; }
.company-list div:last-child { padding-bottom: 0; border-bottom: 0; }

.company-list dt {
  color: var(--cranberry-dark);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.company-list dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  line-height: 1.62;
}

.contact-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid var(--cranberry);
  background: var(--cranberry);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-button:hover {
  background: var(--cranberry-dark);
  transform: translateY(-1px);
}

.site-footer {
  padding: 46px 0 22px;
  background: #1d231f;
  color: #eef2ef;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.site-footer .wordmark { color: #fff; }
.footer-links { gap: 10px 18px; justify-content: flex-end; }

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #c8d0cb;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #3b4540;
  color: #9aa59e;
  font-size: 0.76rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .page-frame { width: min(calc(100% - 48px), 620px); }
  .header-inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0 16px;
  }
  .wordmark { font-size: 1.9rem; }
  .primary-nav { gap: 6px; justify-content: flex-start; }
  .primary-nav a { padding-inline: 10px; }
  .legal-hero::before {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(244, 238, 230, 0.84));
  }
  .legal-hero .page-frame {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
    padding-bottom: 42px;
  }
  .legal-hero h1 { font-size: 3.15rem; }
  .hero-facts { padding: 18px; }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 38px;
    padding-bottom: 64px;
  }
  .legal-toc {
    position: static;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .legal-toc a { min-height: 42px; }
  .company-list div { grid-template-columns: 1fr; gap: 5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .page-frame { width: min(calc(100% - 32px), 420px); }
  .wordmark { font-size: 1.65rem; }
  .wordmark img { width: 36px; height: 36px; }
  .primary-nav a,
  .footer-links a { font-size: 0.82rem; }
  .legal-hero h1 { font-size: 2.65rem; }
  .legal-hero p { font-size: 1rem; }
  .info-panel,
  .company-card { padding: 18px; }
  .legal-body h2 { font-size: 2rem; }
}
