:root {
  color-scheme: light;
  --wine-950: #230c14;
  --wine-900: #31101b;
  --wine-800: #511827;
  --wine-700: #72273a;
  --wine-600: #92384c;
  --paper: #f7f0e5;
  --paper-deep: #eadbc7;
  --ink: #271c1c;
  --muted: #6d5c58;
  --gold: #c89545;
  --gold-soft: #f0d49b;
  --line: rgba(63, 28, 31, 0.15);
  --white: #fffdf8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 4%, rgba(200, 149, 69, 0.12), transparent 28rem),
    var(--paper);
  font-size: 16px;
  line-height: 1.72;
}

a {
  color: var(--wine-700);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--wine-900);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--wine-950);
  background: var(--gold-soft);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
  padding: 0.8rem clamp(1.15rem, 4vw, 4rem);
  color: var(--white);
  background: rgba(35, 12, 20, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  text-decoration: none;
}

.legal-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.legal-brand span {
  display: grid;
  line-height: 1.2;
}

.legal-brand strong {
  font-family: var(--serif);
  font-size: 1.12rem;
}

.legal-brand small {
  margin-top: 0.18rem;
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.legal-header nav a {
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

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

.legal-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 12%, rgba(200, 149, 69, 0.27), transparent 23rem),
    linear-gradient(135deg, var(--wine-950), var(--wine-800));
}

.legal-hero::before,
.legal-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(240, 212, 155, 0.18);
  border-radius: 50%;
}

.legal-hero::before {
  width: 32rem;
  height: 32rem;
  top: -19rem;
  right: -5rem;
}

.legal-hero::after {
  width: 20rem;
  height: 20rem;
  top: -11rem;
  right: 1rem;
}

.legal-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3.2rem) clamp(4rem, 7vw, 6rem);
}

.legal-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  color: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-kicker::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.legal-hero h1 em {
  color: var(--gold-soft);
  font-weight: 400;
}

.legal-updated {
  margin: 1.7rem 0 0;
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.88rem;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 760px);
  gap: clamp(2rem, 6vw, 5.5rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3.2rem);
}

.legal-aside {
  min-width: 0;
}

.legal-toc {
  position: sticky;
  top: 106px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.64);
  box-shadow: 0 16px 45px rgba(49, 16, 27, 0.06);
}

.legal-toc p {
  margin: 0 0 0.9rem;
  color: var(--wine-700);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
}

.legal-toc a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--wine-700);
}

.legal-content {
  min-width: 0;
}

.legal-lead {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.5;
}

.legal-summary,
.legal-callout,
.legal-note {
  margin: 2rem 0;
  padding: 1.45rem clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 16px;
}

.legal-summary {
  border: 1px solid rgba(146, 56, 76, 0.18);
  background: rgba(255, 253, 248, 0.66);
}

.legal-summary strong,
.legal-callout strong,
.legal-note strong {
  color: var(--wine-800);
}

.legal-summary p,
.legal-callout p,
.legal-note p {
  margin: 0;
}

.legal-callout {
  border-left: 4px solid var(--gold);
  background: rgba(240, 212, 155, 0.24);
}

.legal-note {
  border: 1px dashed rgba(114, 39, 58, 0.28);
  background: rgba(234, 219, 199, 0.35);
}

.legal-section {
  padding: 2.35rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.legal-section:first-of-type {
  border-top: 0;
}

.legal-section h2 {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 1.75rem 0 0.6rem;
  color: var(--wine-800);
  font-size: 1.03rem;
}

.legal-section p {
  margin: 0.85rem 0;
}

.legal-section ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.35rem;
}

.legal-section li::marker {
  color: var(--wine-600);
}

.legal-contact {
  display: grid;
  gap: 0.12rem;
  margin-top: 1.3rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.7);
}

.legal-contact p {
  margin: 0;
}

.legal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.legal-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 1.3rem;
  color: var(--white);
  border-radius: 16px;
  background: var(--wine-800);
  text-decoration: none;
}

.legal-action:nth-child(2) {
  color: var(--wine-950);
  background: var(--gold-soft);
}

.legal-action span {
  display: grid;
  min-width: 0;
}

.legal-action small {
  opacity: 0.7;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-action b {
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-size: 1.07rem;
  font-weight: 500;
}

.legal-action i {
  font-style: normal;
  font-size: 1.3rem;
}

.legal-footer {
  padding: 2rem clamp(1.25rem, 4vw, 4rem);
  color: rgba(255, 253, 248, 0.68);
  background: var(--wine-950);
}

.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.legal-footer p {
  margin: 0;
  font-size: 0.82rem;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

  .legal-header nav a:not([aria-current="page"]) {
    display: none;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 20px;
  }

  .legal-header {
    min-height: 68px;
  }

  .legal-brand img {
    width: 40px;
    height: 40px;
  }

  .legal-brand small {
    display: none;
  }

  .legal-header nav {
    gap: 0.7rem;
  }

  .legal-header nav a {
    font-size: 0.8rem;
  }

  .legal-hero-inner {
    padding-top: 4rem;
  }

  .legal-shell {
    padding-top: 2.4rem;
  }

  .legal-toc ol,
  .legal-actions {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding: 1.9rem 0;
  }

  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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