/* =================================================================
   Leon Muschew — Portfolio
   Plain CSS. Mobile-first. Light + dark theme via CSS variables.
   ================================================================= */

/* ---------- 1. Design tokens (the single source of truth) ---------- */
:root {
  /* Light theme palette: warm off-white, navy ink, warm accent */
  --bg:           #f7f5f1;
  --surface:      #ffffff;
  --surface-2:    #f0ece5;
  --ink:          #122339;   /* primary text — deep navy */
  --ink-soft:     #3a4a5e;
  --muted:        #66758a;   /* secondary text */
  --brand:        #12355b;   /* navy */
  --accent:       #ee6c3a;   /* warm coral/amber */
  --accent-ink:   #122339;   /* readable text on the accent */
  --accent-soft:  rgba(238, 108, 58, 0.12);
  --border:       rgba(18, 35, 57, 0.10);
  --border-strong:rgba(18, 35, 57, 0.16);
  --shadow-sm:    0 1px 2px rgba(18, 35, 57, 0.06), 0 2px 8px rgba(18, 35, 57, 0.05);
  --shadow-md:    0 10px 30px -12px rgba(18, 35, 57, 0.20);
  --shadow-lg:    0 30px 60px -20px rgba(18, 35, 57, 0.28);

  /* Layout + type scale */
  --container:    1120px;
  --radius:       18px;
  --radius-sm:    12px;
  --radius-pill:  999px;
  --font:         "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg:           #0a1422;
  --surface:      #101f33;
  --surface-2:    #16273f;
  --ink:          #eaf1f8;
  --ink-soft:     #c2d0df;
  --muted:        #8da3ba;
  --brand:        #2f6db0;
  --accent:       #ff8147;
  --accent-ink:   #0a1422;
  --accent-soft:  rgba(255, 129, 71, 0.16);
  --border:       rgba(255, 255, 255, 0.10);
  --border-strong:rgba(255, 255, 255, 0.18);
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:    0 10px 30px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg:    0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--ink); color: var(--bg);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.accent-text { color: var(--accent); }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: 0.98rem;
  padding: 0.8rem 1.4rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }

.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px var(--accent); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- 4. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--brand); color: #fff; border-radius: 11px;
  font-size: 0.95rem; font-weight: 800; letter-spacing: 0.02em;
}
[data-theme="dark"] .brand-mark { background: var(--accent); color: var(--accent-ink); }
.brand-name { font-size: 1.02rem; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links > a:not(.btn) {
  position: relative; padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--ink-soft); font-size: 0.96rem;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav-links > a.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* sun/moon swap */
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* hamburger */
.menu-toggle { flex-direction: column; gap: 4px; }
.menu-bar { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; padding: 3.5rem 0 4rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 18%, var(--accent-soft), transparent 70%),
    radial-gradient(45% 55% at 12% 12%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
}

.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-copy { min-width: 0; } /* allow text to wrap instead of widening the column */

.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 0.35rem 0.8rem; border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
}
.hero-title { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; margin-bottom: 1.2rem; overflow-wrap: break-word; }
.hero-lead { font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--muted); max-width: 36ch; margin-bottom: 1.8rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* hero visual */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 360px; }
.photo-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Monogram visual — a restrained, logo-like mark shown instead of a photo */
.monogram-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  background: linear-gradient(168deg, var(--surface-2), var(--surface));
}
/* very faint dot-grid texture, fading to clear whitespace at the edges */
.monogram-card::before {
  content: ""; position: absolute; inset: 0; color: var(--border-strong);
  background-image: radial-gradient(currentColor 1px, transparent 1.5px);
  background-size: 30px 30px; opacity: 0.2;
  -webkit-mask-image: radial-gradient(78% 78% at 50% 48%, #000 16%, transparent 70%);
          mask-image: radial-gradient(78% 78% at 50% 48%, #000 16%, transparent 70%);
}
/* two thin, faint concentric rings framing the mark */
.monogram-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 55%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--border);
}
.monogram-ring::before {
  content: ""; position: absolute; inset: -16%; border-radius: 50%;
  border: 1px solid var(--border); opacity: 0.55;
}
/* the LM monogram — a single continuous, geometric logotype */
.monogram {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(82px, 22vw, 116px); line-height: 0;
}
.monogram svg { display: block; width: 100%; height: auto; overflow: visible; }
.monogram .mono-stroke {
  fill: none; stroke: var(--ink); stroke-width: 10;
  stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 8;
}
/* a single restrained accent rule beneath the mark — the only brand color */
.monogram::after {
  content: ""; position: absolute; left: 50%; bottom: -8%; transform: translateX(-50%);
  width: 30px; height: 2px; border-radius: 2px; background: var(--accent); opacity: 0.85;
}

.float-card {
  position: absolute; display: flex; align-items: center; gap: 0.65rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 0.7rem 0.9rem; box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.88rem; }
.float-card small { color: var(--muted); font-size: 0.76rem; }
.float-emoji { font-size: 1.3rem; }
.float-card--1 { top: 6%; left: 4%; }
.float-card--2 { bottom: 7%; right: 4%; animation-delay: 1.2s; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 6. Sections ---------- */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--surface-2); }

.section-eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.section-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; margin-bottom: 2.2rem; max-width: 18ch; }

/* About */
.about-grid { display: grid; gap: 2.5rem; }
.about-text p { font-size: 1.05rem; color: var(--ink-soft); }
.about-text strong { color: var(--ink); }

.about-facts { display: grid; gap: 0.8rem; align-content: start; }
.about-facts li {
  display: flex; flex-direction: column; gap: 0.15rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.about-facts li:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.fact-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.fact-value { font-weight: 600; }

/* ---------- 7. Projects ---------- */
.project-feature {
  display: grid; gap: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-feature-body { padding: clamp(1.5rem, 4vw, 2.5rem); }

.project-head { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.project-title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.76rem; font-weight: 600; padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
}
.badge-live { color: #16a34a; border-color: rgba(22, 163, 74, 0.3); background: rgba(22, 163, 74, 0.08); }
[data-theme="dark"] .badge-live { color: #4ade80; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.project-role { color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.project-desc { color: var(--ink-soft); max-width: 62ch; margin-bottom: 1.4rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.tag-list li {
  font-size: 0.84rem; font-weight: 500; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 0.35rem 0.75rem; border-radius: var(--radius-pill);
}
.project-links { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.project-feature-side {
  display: grid; gap: 1.2rem; align-content: start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(160deg, var(--surface-2), transparent);
  border-top: 1px solid var(--border);
}
.highlight { display: flex; align-items: baseline; gap: 0.8rem; }
.highlight-num {
  font-size: 1.2rem; font-weight: 800; color: var(--accent);
  min-width: 3.2rem; flex-shrink: 0;
}
.highlight-text { color: var(--ink-soft); font-size: 0.95rem; }

.project-soon {
  display: flex; align-items: center; gap: 0.9rem; justify-content: center;
  margin-top: 1.5rem; padding: 1.5rem; text-align: center;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  color: var(--muted);
}
.soon-icon {
  display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-size: 1.3rem; font-weight: 700;
}
.project-soon p { margin: 0; }

/* ---------- 8. Skills ---------- */
.skills-grid { display: grid; gap: 1.2rem; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.skill-card-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.1rem; }
.skill-ico {
  display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0;
  background: var(--accent-soft); border-radius: 10px; font-size: 0.9rem; font-weight: 700; color: var(--accent);
}
.skill-card .tag-list { margin-bottom: 0; }

.lang-list { display: grid; gap: 0.7rem; }
.lang-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--border); }
.lang-list li:last-child { border-bottom: none; padding-bottom: 0; }
.lang-list span { font-weight: 600; }
.lang-list small { color: var(--muted); font-size: 0.85rem; }

/* ---------- 9. Contact ---------- */
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(2rem, 6vw, 3.5rem);
  box-shadow: var(--shadow-md); text-align: center; max-width: 720px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 100%; z-index: 0;
  background: radial-gradient(40% 60% at 50% 0%, var(--accent-soft), transparent 70%);
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card .section-title { margin: 0 auto 1rem; }
.contact-lead { color: var(--muted); max-width: 48ch; margin: 0 auto 2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 2rem; }

.contact-socials { display: flex; gap: 0.8rem; justify-content: center; }
.social-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border); color: var(--ink-soft); font-weight: 500; font-size: 0.92rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.social-link:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); background: var(--accent-soft); }

/* ---------- 10. Footer ---------- */
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; text-align: center; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; }
.footer-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s var(--ease); }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--accent); }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: var(--ink); transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.to-top:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }

/* ---------- 11. Scroll reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 12. Responsive: tablet & up ---------- */
@media (min-width: 760px) {
  .about-grid { grid-template-columns: 1.5fr 1fr; gap: 3rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .project-feature { grid-template-columns: 1.7fr 1fr; }
  .project-feature-side { border-top: none; border-left: 1px solid var(--border); background: linear-gradient(200deg, var(--surface-2), transparent); }
}

@media (min-width: 960px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .hero-visual { max-width: 400px; }
  .section { padding: 6rem 0; }
  /* let the floating cards bleed beyond the photo frame on larger screens */
  .float-card--1 { left: -8%; }
  .float-card--2 { right: -6%; }
}

/* ---------- 13. Responsive: mobile nav ---------- */
@media (max-width: 859px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a:not(.btn) { padding: 0.85rem 1rem; }
  .nav-links .btn { justify-content: center; margin-top: 0.5rem; }
}
@media (min-width: 860px) {
  .menu-toggle { display: none; }
}

/* ---------- 15. Legal / Impressum page ---------- */
.legal { padding: 7rem 0 5rem; }            /* top padding clears the sticky header */
.legal .container { max-width: 720px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--muted); font-size: 0.92rem; font-weight: 500; margin-bottom: 2.2rem;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.legal-back:hover { color: var(--accent); gap: 0.6rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: 2.2rem; }
.legal-block { margin: 0 0 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.legal-block:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.legal-block h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--accent); margin-bottom: 0.9rem;
}
.legal address { font-style: normal; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.95; }
.legal-block > p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.legal-block a {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--accent);
  transition: color 0.2s var(--ease);
}
.legal-block a:hover { color: var(--accent); }

/* Long-form legal document (Datenschutzerklärung) — richer heading scale */
.legal-doc h2 {
  font-size: clamp(1.3rem, 3.2vw, 1.6rem); font-weight: 800; color: var(--ink);
  margin: 2.8rem 0 1.2rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.legal-doc h2:first-of-type { margin-top: 1.4rem; padding-top: 0; border-top: none; }
.legal-doc h3 { font-size: 1.16rem; font-weight: 700; color: var(--accent); margin: 1.9rem 0 0.7rem; }
.legal-doc h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 1.3rem 0 0.5rem; }
.legal-doc p { color: var(--ink-soft); font-size: 1rem; line-height: 1.78; margin: 0 0 1.05rem; }
.legal-doc ul { list-style: disc; padding-left: 1.35rem; margin: 0 0 1.2rem; color: var(--ink-soft); }
.legal-doc li { margin-bottom: 0.5rem; line-height: 1.7; }
.legal-doc address { font-style: normal; color: var(--ink-soft); font-size: 1rem; line-height: 1.9; margin: 0 0 1.05rem; }
.legal-doc a {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--accent); transition: color 0.2s var(--ease);
  overflow-wrap: anywhere;
}
.legal-doc a:hover { color: var(--accent); }
.legal-doc .ds-emphasis { font-size: 0.9rem; line-height: 1.7; color: var(--muted); }
.legal-doc .ds-source { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }

/* ---------- 16. Respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
