:root {
  --bg: #f3efe6;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --ink: #1f1a17;
  --muted: #665d56;
  --line: rgba(110, 88, 67, 0.16);
  --brand: #8d1f1f;
  --brand-dark: #5b1111;
  --accent: #d9b36c;
  --shadow: 0 24px 60px rgba(54, 35, 24, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(217, 179, 108, 0.24), transparent 24%),
    radial-gradient(circle at top right, rgba(141, 31, 31, 0.14), transparent 20%),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 48%, #efe9df 100%);
}

a {
  color: inherit;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(32, 23, 19, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-header__inner,
.legal-footer__inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff8f1;
}

.brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, #b62c2c 100%);
  box-shadow: 0 10px 24px rgba(141, 31, 31, 0.35);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__text strong {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.brand__text span {
  font-size: 0.82rem;
  color: rgba(255, 248, 241, 0.72);
}

.legal-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-nav a {
  color: rgba(255, 248, 241, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
}

.legal-nav a:hover {
  color: #ffffff;
}

.legal-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero-card {
  padding: 40px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 242, 231, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 31, 31, 0.14), transparent 68%);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
}

.hero-copy {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(141, 31, 31, 0.08);
  color: var(--brand-dark);
  font-size: 0.92rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.summary-card,
.toc,
.legal-section {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(36, 25, 19, 0.06);
}

.summary-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.summary-card h2,
.toc h2,
.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.summary-card p,
.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 92px;
}

.toc {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.toc a {
  display: block;
  text-decoration: none;
  padding: 10px 0;
  color: var(--muted);
  border-top: 1px solid rgba(110, 88, 67, 0.12);
}

.toc a:first-of-type {
  border-top: 0;
}

.toc a:hover {
  color: var(--brand);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.legal-section ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal-section--highlight {
  background: linear-gradient(135deg, rgba(141, 31, 31, 0.07), rgba(217, 179, 108, 0.16));
}

.legal-section a {
  color: var(--brand);
}

.legal-footer {
  background: #17110e;
  color: rgba(255, 248, 241, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.legal-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-footer__links a {
  text-decoration: none;
  color: rgba(255, 248, 241, 0.84);
}

.legal-footer__links a:hover {
  color: #ffffff;
}

@media (max-width: 980px) {
  .summary-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .legal-header__inner,
  .legal-footer__inner {
    width: min(calc(100% - 24px), var(--max));
  }

  .legal-header__inner,
  .legal-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card,
  .summary-card,
  .toc,
  .legal-section {
    padding: 22px;
  }

  .legal-shell {
    width: min(calc(100% - 24px), var(--max));
    padding: 24px 0 44px;
  }

  .hero-meta {
    flex-direction: column;
  }
}
