/* ============================================
   DJ Mattia — Website
   Dark nightclub aesthetic
   ============================================ */

:root {
  --font-display: 'Clash Display', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  --radius-sm: 0.4rem;
  --radius-md: 0.65rem;
  --radius-lg: 0.9rem;
  --radius-xl: 1.4rem;
  --radius-full: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Hoehe des Sticky-Headers – Basis fuer scroll-margin bei Ankerzielen */
  --header-h: 5.5rem;

  /* Light theme
     Hinweis: Die Helligkeitswerte von --primary, --accent und --text-faint
     sind so gewaehlt, dass kleiner Text WCAG AA (4.5:1) auf --bg erreicht. */
  --bg: 280 25% 98%;
  --bg-offset: 280 20% 94%;
  --surface: 0 0% 100%;
  --surface-offset: 280 15% 96%;
  --text: 266 30% 10%;
  --text-muted: 266 12% 38%;
  --text-faint: 266 8% 46%;
  --border: 266 15% 88%;
  --primary: 328 92% 45%;
  --primary-contrast: 0 0% 100%;
  --accent: 172 60% 31%;
  --error: 0 72% 44%;

  color-scheme: light;
}

html.dark {
  --bg: 265 32% 6%;
  --bg-offset: 266 28% 9%;
  --surface: 266 28% 9%;
  --surface-offset: 266 24% 13%;
  --text: 280 20% 96%;
  --text-muted: 270 12% 70%;
  --text-faint: 270 8% 56%;
  --border: 266 20% 18%;
  --primary: 328 95% 60%;
  --primary-contrast: 266 32% 6%;
  --accent: 172 65% 50%;
  --error: 0 78% 62%;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: hsl(var(--bg));
  color: hsl(var(--text));
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; background: hsl(var(--surface-offset)); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; line-height: 1.6; color: hsl(var(--text-muted)); }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: hsl(var(--primary));
  color: hsl(var(--primary-contrast));
  padding: var(--space-3) var(--space-4);
  z-index: 200;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

section { padding-inline: var(--space-6); }

/* Ankerziele nicht unter den Sticky-Header scrollen lassen */
section[id], main[id] { scroll-margin-top: var(--header-h); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
/* Lucide ersetzt <i> durch <svg> – beide Selektoren werden gebraucht. */
.btn i, .btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-contrast));
}
.btn-primary:hover { background: hsl(var(--primary) / 0.88); }

.btn-ghost {
  background: transparent;
  color: hsl(var(--text));
  border-color: hsl(var(--border));
}
.btn-ghost:hover { border-color: hsl(var(--primary) / 0.6); background: hsl(var(--primary) / 0.08); }

.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(var(--bg) / 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}
/* Fallback, wenn der Browser kein backdrop-filter kann: deckende Flaeche,
   damit der Text beim Ueberscrollen lesbar bleibt. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: hsl(var(--bg) / 0.97); }
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: hsl(var(--text));
}
.brand-logo-img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  display: block;
  background: transparent;
}
.brand-logo-img.logo-dark { display: none; }
html.dark .brand-logo-img.logo-light { display: none; }
html.dark .brand-logo-img.logo-dark { display: block; }
.brand-footer .brand-logo-img { height: 64px; }

.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;
}

.main-nav {
  display: none;
  gap: var(--space-8);
  align-items: center;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: hsl(var(--text-muted));
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: hsl(var(--text)); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--text));
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}
.theme-toggle:hover { border-color: hsl(var(--primary) / 0.5); }
.theme-toggle i, .theme-toggle svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
html.dark .icon-sun { display: none; }
html.dark .icon-moon { display: block; }

.nav-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--text));
  flex-shrink: 0;
}
.nav-toggle i, .nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-6) var(--space-6);
  border-top: 1px solid hsl(var(--border) / 0.6);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: var(--space-3) var(--space-2);
  font-size: 0.98rem;
  font-weight: 500;
  color: hsl(var(--text));
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.mobile-nav .btn { margin-top: var(--space-3); justify-content: center; }

@media (min-width: 860px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ============ Hero ============ */
/* Der Hero ist in BEIDEN Themes dunkel getoent. Grund: das Foto laeuft
   randlos, und ein helles Scrim wuerde die weisse Wortmarke im hellen
   Modus auf ~2,8:1 druecken. Der Uebergang zur Seitenfarbe passiert
   deshalb erst in .hero-fade, unterhalb des Inhalts. */
.hero {
  position: relative;
  /* isolation erzeugt einen eigenen Stacking-Context, damit das
     Hintergrundbild (z-index: -1) nicht hinter den Body-Hintergrund faellt. */
  isolation: isolate;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding-inline: 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Der Verlauf ist nach links gewichtet: die Textspalte liegt zuverlaessig
   dunkel (Weiss >= 7:1 auch auf den hellsten Bildstellen), waehrend die
   rechte Bildhaelfte offen bleibt und das Foto lesbar ist. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 92% 8%, hsl(172 70% 45% / 0.18) 0%, transparent 60%),
    radial-gradient(120% 90% at 12% 88%, hsl(328 95% 45% / 0.3) 0%, transparent 58%),
    linear-gradient(100deg,
      hsl(265 45% 4% / 0.74) 0%,
      hsl(265 45% 4% / 0.64) 30%,
      hsl(265 45% 4% / 0.26) 58%,
      hsl(265 45% 4% / 0.04) 88%,
      hsl(265 45% 4% / 0.02) 100%),
    linear-gradient(180deg,
      hsl(265 45% 4% / 0.22) 0%,
      hsl(265 45% 4% / 0.16) 42%,
      hsl(265 45% 4% / 0.48) 100%);
}

/* Eigene Ebene fuer den Uebergang in die Seitenfarbe. Als separates
   Element, damit der Inhalt oberhalb davon endet und nie im Verlauf steht. */
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(80px, 12vh, 130px);
  background: linear-gradient(180deg,
    hsl(var(--bg) / 0) 0%,
    hsl(var(--bg) / 0.75) 55%,
    hsl(var(--bg)) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-6) clamp(120px, 17vh, 185px);
}

/* Der Taktstrich: "DJ-Sets × Live-Drums" ist die eigentliche These der
   Seite, deshalb wird das Kreuz zum Gestaltungselement statt zum Trennzeichen. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(280 15% 88%);
  margin-bottom: var(--space-5);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 34px;
  height: 1px;
  background: hsl(328 95% 58%);
}
.eyebrow-x {
  color: hsl(172 70% 58%);
  font-weight: 500;
  display: inline-block;
}

.hero-logo {
  display: block;
  height: clamp(148px, 23vw, 265px);
  width: auto;
  margin-bottom: var(--space-8);
  background: transparent;
  filter: drop-shadow(0 16px 44px hsl(265 60% 2% / 0.5));
}

.hero-title {
  font-size: clamp(3rem, 12vw, 7.5rem);
  color: hsl(var(--text));
  margin-bottom: var(--space-4);
}

/* Die Tagline traegt zwei Ebenen: der Hauptsatz als Aussage in der
   Display-Schrift, der Nachsatz hinter dem Gedankenstrich als ruhiger
   Fliesstext. Der Wortlaut bleibt dabei unveraendert. */
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.7vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 26ch;
  color: hsl(280 18% 93%);
  margin-bottom: var(--space-8);
}
.hero-tagline-sub {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.55;
  letter-spacing: 0;
  max-width: 46ch;
  color: hsl(280 12% 82%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero .btn-primary {
  box-shadow: 0 12px 32px hsl(328 95% 35% / 0.38);
}
.hero .btn-primary:hover {
  box-shadow: 0 16px 40px hsl(328 95% 35% / 0.5);
}

.scroll-cue {
  position: absolute;
  bottom: clamp(116px, 17vh, 185px);
  right: var(--space-8);
  z-index: 1;
  width: 44px;
  height: 62px;
  padding: 0;
  border: 0;
  background: none;
  color: hsl(280 15% 90%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue::before {
  content: "";
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, hsl(280 15% 90% / 0), hsl(280 15% 90% / 0.9));
}
.scroll-cue i, .scroll-cue svg {
  width: 18px;
  height: 18px;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* Auftakt: die Hero-Elemente kommen gestaffelt herein, danach zaehlt das
   Kreuz acht Schlaege im 120-BPM-Takt ein und kommt zur Ruhe. */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-content > .eyebrow { animation-delay: 0.05s; }
  .hero-content > .hero-logo { animation-delay: 0.18s; }
  .hero-content > .hero-tagline { animation-delay: 0.32s; }
  .hero-content > .hero-actions { animation-delay: 0.46s; }
  .eyebrow-x { animation: countIn 0.5s ease-out 1.3s 8 both; }
  .scroll-cue { animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes countIn {
  0%, 100% { opacity: 1; transform: scale(1); }
  14% { opacity: 0.45; transform: scale(1.22); }
}

/* ============ Scroll-Reveal ============ */
/* Dieselbe Bewegung wie der Hero-Auftakt, nur beim Hereinscrollen.
   Die Startklasse setzt das Inline-Skript im <head> und nur dann, wenn
   IntersectionObserver vorhanden ist und keine reduzierte Bewegung
   gewuenscht wird — ohne JavaScript bleibt also nichts unsichtbar. */
[data-reveal] {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}
.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }

/* ============ Section Labels ============ */
/* Dasselbe Strukturelement wie die Hero-Eyebrow: die magentafarbene
   Haarlinie fuehrt jede Abschnittsmarke an und klammert die Seite zusammen. */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: var(--space-4);
}
.section-label::before {
  content: "";
  flex: none;
  width: 34px;
  height: 1px;
  background: currentColor;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: hsl(var(--text));
  margin-bottom: var(--space-5);
  max-width: 20ch;
}

.lede {
  font-size: 1.1rem;
  color: hsl(var(--text) / 0.85);
  max-width: 52ch;
}

/* ============ About ============ */
.about {
  padding-block: var(--space-24) var(--space-16);
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
.about-media {
  position: relative;
  isolation: isolate;
}
.about-media img {
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}
/* Derselbe Markenschleier wie im Hero, nur deutlich zurueckgenommen —
   er verbindet das About-Bild optisch mit dem Aufmacher. */
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  pointer-events: none;
  background:
    radial-gradient(80% 70% at 85% 92%, hsl(328 95% 45% / 0.22) 0%, transparent 60%),
    radial-gradient(70% 60% at 8% 8%, hsl(172 70% 45% / 0.14) 0%, transparent 62%);
}
.about-copy .lede { margin-bottom: var(--space-5); }
.about-copy p { margin-bottom: var(--space-4); }
.about-copy p:last-of-type { margin-bottom: var(--space-6); }

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.genre-tags li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--text-muted));
  transition: border-color 0.2s ease, color 0.2s ease;
}
.genre-tags li:hover {
  border-color: hsl(var(--primary) / 0.45);
  color: hsl(var(--text));
}
.tag-x { color: hsl(var(--accent)); }

@media (min-width: 860px) {
  .about-inner { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-16); }
}

/* ============ Contact ============ */
/* Gegenstueck zum Hero: die Seite oeffnet und schliesst auf demselben
   dunklen Ton mit denselben Markenschleiern. In beiden Themes identisch. */
.contact { padding-block: var(--space-24) var(--space-32); }
.contact-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-10);
  background: hsl(265 45% 6%);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4.5rem);
}
.contact-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 80% at 8% 92%, hsl(328 95% 45% / 0.3) 0%, transparent 60%),
    radial-gradient(80% 70% at 95% 5%, hsl(172 70% 45% / 0.16) 0%, transparent 62%);
}
.contact .section-label { color: hsl(328 95% 66%); }
.contact h2 { color: hsl(280 18% 96%); }
.contact .lede { color: hsl(280 14% 86%); }

.contact-card {
  background: hsl(0 0% 100% / 0.05);
  border: 1px solid hsl(0 0% 100% / 0.16);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  font-size: 1.05rem;
  color: hsl(280 16% 95%);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid hsl(0 0% 100% / 0.14);
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}
.contact-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.contact-row i, .contact-row svg { width: 20px; height: 20px; color: hsl(328 95% 68%); flex-shrink: 0; }
.contact-row:hover { color: hsl(328 95% 68%); }

/* Instagram-Glyphe: liegt als Inline-SVG im Markup (Lucide fuehrt seit v1
   keine Marken-Icons mehr), erbt Groesse und Farbe wie die Lucide-Icons. */
.icon-instagram { flex-shrink: 0; }
.contact-note {
  font-size: 0.85rem;
  color: hsl(280 10% 72%);
  margin-top: var(--space-2);
}

.private-note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: hsl(280 10% 72%);
  margin-top: var(--space-6);
  padding-left: var(--space-4);
  border-left: 2px solid hsl(328 95% 58% / 0.55);
}

@media (min-width: 860px) {
  .contact-inner { grid-template-columns: 1fr 0.85fr; gap: var(--space-16); align-items: start; }
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid hsl(var(--border) / 0.6);
  padding-block: var(--space-8);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
.brand-footer { color: hsl(var(--text-muted)); }
.footer-links { display: flex; gap: var(--space-4); }
.footer-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--text-muted));
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-links a:hover { color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.5); }
.footer-links i, .footer-links svg { width: 16px; height: 16px; }
.footer-copy { font-size: 0.8rem; color: hsl(var(--text-faint)); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
}
.footer-legal a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--text-faint));
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: hsl(var(--primary)); }

@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; flex-wrap: wrap; }
  .footer-legal { justify-content: flex-end; }
}

/* ============ Legal pages (Impressum / Datenschutz) ============ */
.legal-main { padding-block: var(--space-16) var(--space-32); }
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: var(--space-6);
}
/* Kopf und Abschnitte durch Haarlinien gegliedert — dasselbe ruhige
   Raster wie auf der Startseite, nur ohne Bild. */
.legal-header {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid hsl(var(--border) / 0.7);
}
.legal-header .section-label { margin-bottom: var(--space-3); }
.legal-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: hsl(var(--text));
  letter-spacing: -0.01em;
}
.legal-body { display: flex; flex-direction: column; gap: var(--space-10); }
.legal-body > div + div {
  padding-top: var(--space-10);
  border-top: 1px solid hsl(var(--border) / 0.55);
}
.legal-body h2 {
  max-width: none;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.legal-body p { margin-bottom: var(--space-3); max-width: none; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-body a:hover { color: hsl(var(--primary) / 0.8); }
.legal-back {
  display: inline-flex;
  letter-spacing: 0.02em;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--text-muted));
  margin-bottom: var(--space-10);
  transition: color 0.2s ease;
}
.legal-back:hover { color: hsl(var(--primary)); }
.legal-back i, .legal-back svg { width: 16px; height: 16px; }
