/* =========================================================================
   Tomáš Michalčík — hlavní stylesheet
   ========================================================================= */

:root {
  --bg: #0B0B0C;
  --bg-alt: #0F0F11;
  --surface: #16161A;
  --text: #F2F1EE;
  --text-dim: rgba(242, 241, 238, .66);
  --text-dimmer: rgba(242, 241, 238, .5);
  --accent: #C8FF3D;
  --accent-soft: #E4FF95;
  --border: rgba(242, 241, 238, .1);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--accent-soft); }
h1, h2, h3, h4, p, ul, li, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- utils */
.btn, .btn-outline, .btn-ghost, .link-btn {
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text);
}
.btn {
  background: var(--accent);
  color: var(--bg);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 16px;
  display: inline-flex;
  transition: transform .25s ease, background .25s ease;
}
.btn:hover { background: var(--accent-soft); transform: translateY(-3px); color: var(--bg); }
.btn--small { padding: 12px 22px; font-size: 15px; }
.btn-outline {
  border: 1px solid rgba(242,241,238,.24);
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15px;
  transition: border-color .25s ease;
}
.btn-outline:hover { border-color: var(--accent); }
.btn-ghost { text-decoration: underline; font-size: 14px; color: var(--text-dim); }
.link-btn { text-decoration: underline; font-size: inherit; font-family: inherit; font-weight: 500; color: var(--text-dim); padding: 0; }
.link-btn:hover { color: var(--accent); }

/* ------------------------------------------------------------ progress bar */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 90; pointer-events: none;
  transition: width .1s linear;
}

/* -------------------------------------------------------------- top ticker */
.top-ticker {
  background: var(--accent); color: var(--bg); overflow: hidden;
  white-space: nowrap; padding: 9px 0;
}
.top-ticker__track {
  display: inline-flex; gap: 40px; white-space: nowrap;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.top-ticker__track .dot { opacity: .6; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,11,12,.78);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--container); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: baseline; gap: 10px; color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em;
}
.logo:hover { color: var(--text); }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--text-dim); }
.nav-links a { color: inherit; }
.nav-links a:hover { color: var(--text); }
/* Reset výchozího vzhledu tlačítka (jinak má bílé pozadí prohlížeče a bílé
   čárky na něm zaniknou) + dostatečně velká plocha pro prst (44 × 44 px). */
.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: 0; margin-right: -10px;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
  -webkit-appearance: none; appearance: none; color: inherit;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text); display: block; border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 0 24px 20px;
  background: rgba(11,11,12,.98);
}
/* :not(.btn) — bez toho tahle pravidla přebijí styl tlačítka (vyšší
   specificita) a "Kontaktujte mě" skončí se světlým textem na světlém pozadí. */
.nav-mobile a:not(.btn) { padding: 12px 0; color: var(--text-dim); border-bottom: 1px solid var(--border); font-size: 16px; }
.nav-mobile a:not(.btn):hover { color: var(--text); }
.nav-mobile .btn { margin-top: 16px; justify-content: center; }

@media (max-width: 860px) {
  .nav-links, .nav > .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* -------------------------------------------------------------------- hero */
/* --above-hero se dopočítá v main.js (skutečná výška top-tickeru + hlavičky),
   aby hero (při zachování velkého nadpisu) vyšel bez scrollu jen díky
   přiškrceným paddingům/mezerám — ne zmenšením typografie ani centrováním. */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(16px,2.4vh,28px) 0 clamp(20px,3vh,32px);
}
/* Dotažení na výšku okna má smysl jen tam, kde se obsah vejde vedle sebe.
   Na mobilu a tabletu na výšku je hero přirozeně vyšší než okno, takže by
   min-height jen vyrobila prázdné místo pod tlačítky. */
@media (min-width: 860px) {
  .hero { min-height: calc(100vh - var(--above-hero, 110px)); }
}
.hero__glow {
  position: absolute; top: -140px; right: -120px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(200,255,61,.16), transparent 68%);
  filter: blur(10px); animation: glow 9s ease-in-out infinite; pointer-events: none;
}
@keyframes glow { 0%,100% { opacity: .55; } 50% { opacity: .9; } }
.hero__inner { position: relative; display: flex; flex-direction: column; gap: clamp(16px,2.4vw,32px); }
.badge {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px;
  border: 1px solid rgba(242,241,238,.16); border-radius: 999px; padding: 8px 16px;
  font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.rating-avatars { display: flex; align-items: center; }
.rating-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bg); background: var(--surface);
  margin-left: -20px; transition: transform .25s ease;
}
.rating-avatar:first-child { margin-left: 0; }
.rating-avatars:hover .rating-avatar { transform: translateY(-2px); }
.rating-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.rating-top { display: flex; align-items: center; gap: 12px; }
.stars { display: flex; gap: 3px; font-size: 22px; color: var(--accent); line-height: 1; }
.stars .star--empty { color: rgba(242,241,238,.22); }
.rating-value { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.rating-text {
  font-size: 15px; color: var(--text-dim);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
a.rating-text:hover { color: var(--accent); }

@media (max-width: 480px) {
  .rating-avatar { width: 42px; height: 42px; margin-left: -16px; }
  .stars { font-size: 19px; }
  .rating-value { font-size: 19px; }
}
.h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: .88;
  font-size: clamp(46px,11vw,168px); margin: 0;
}
.h1 span { display: block; }
.h1 .indent-lg { padding-left: clamp(0px,8vw,180px); }
.h1 .indent-sm { padding-left: clamp(0px,3vw,60px); }
.h1 .accent { color: var(--accent); }
.hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 20px; align-items: end; border-top: 1px solid rgba(242,241,238,.12); padding-top: 20px;
}
.hero__lead { font-size: clamp(17px,1.5vw,20px); line-height: 1.5; color: var(--text-dim); max-width: 46ch; }
.feature-list { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-display); font-size: 16px; }
.feature-list li { display: flex; gap: 12px; align-items: center; }
.feature-list .check { color: var(--accent); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* Na širších oknech, kde má mřížka pod titulkem víc sloupců, sedí tlačítka
   úplně vpravo u okraje; v úzkém rozložení (vlastní řádek) zůstávají vlevo
   v jedné ose se zbytkem textu. */
@media (min-width: 860px) {
  .hero__ctas { justify-content: flex-end; }
}

/* ---------------------------------------------------------------- sections */
section { padding: clamp(56px,8vw,120px) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head {
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end;
  margin-bottom: clamp(36px,5vw,64px);
}
.h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: .92;
  font-size: clamp(38px,6.6vw,104px); margin: 0;
}
.h2 span { display: block; }
.h2 .accent { color: var(--accent); }
.section-lead { font-size: 17px; line-height: 1.55; color: var(--text-dimmer); max-width: 34ch; }

/* ------------------------------------------------------------------ services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 20px; }
.service-card {
  display: flex; flex-direction: column; gap: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 26px; padding: clamp(24px,3vw,38px);
  transition: transform .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(200,255,61,.45); }
.service-num { font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.service-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px,2.3vw,32px); letter-spacing: -.02em; line-height: 1.1; }
.service-desc { font-size: 16px; line-height: 1.6; color: var(--text-dim); flex: 1; }
.service-cta { font-family: var(--font-display); font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }

/* --------------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: clamp(32px,5vw,72px); align-items: center; }
.about-text { display: flex; flex-direction: column; gap: 26px; }
.eyebrow { font-family: var(--font-display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dimmer); }
.about-p1 { font-size: clamp(16px,1.3vw,19px); line-height: 1.6; color: var(--text-dim); }
.about-p2 { font-size: 16px; line-height: 1.65; color: rgba(242,241,238,.58); }
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 20px;
  border-top: 1px solid rgba(242,241,238,.12); padding-top: 26px;
}
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -.03em; }
.stat-value.accent { color: var(--accent); }
.stat-label { font-size: 14px; color: var(--text-dimmer); }
.about-photo-wrap { position: relative; }
.about-photo-glow {
  position: absolute; inset: 8% 6%; border-radius: 30px;
  background: radial-gradient(circle at 50% 40%, rgba(200,255,61,.22), transparent 70%); filter: blur(30px);
}
.about-photo { position: relative; width: 100%; border-radius: 28px; background: var(--surface); aspect-ratio: 4/5; object-fit: cover; }

/* ---------------------------------------------------------------- references */
.reference-card {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,330px),1fr));
  gap: clamp(24px,3vw,56px); align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 30px; padding: clamp(22px,2.6vw,38px);
  margin-bottom: 20px;
}
.reference-card.img-right { direction: rtl; }
.reference-card.img-right > * { direction: ltr; }
.reference-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px,2.4vw,36px); letter-spacing: -.02em; line-height: 1.1; }
.reference-tags { display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--text-dim); margin: 18px 0; }
.reference-tags li { display: flex; gap: 10px; }
/* Poměr stran 860 × 360 px (a jeho násobky, např. 1720 × 720). Nahraný
   obrázek se do něj ořízne přes object-fit, ať sedí i při jiném rozměru. */
.reference-img { width: 100%; border-radius: 18px; background: var(--bg); aspect-ratio: 860 / 360; object-fit: cover; }

/* --- sbalený seznam: 3 projekty celé, 4. jen povystrčený pod fadem --- */
.references-list.is-collapsed .reference-card:nth-child(4) {
  max-height: 220px;
  overflow: hidden;
  pointer-events: none; /* ať nejde kliknout na uříznutý odkaz */
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
.references-list.is-collapsed .reference-card:nth-child(n+5) { display: none; }
.references-more { display: flex; justify-content: center; margin-top: 8px; }

/* ------------------------------------------------------------------ logos ticker */
.logos-ticker { overflow: hidden; white-space: nowrap; padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.logos-ticker__track {
  display: inline-flex; gap: 56px; white-space: nowrap; animation: marquee 34s linear infinite;
  font-family: var(--font-display); font-size: clamp(18px,2vw,28px); font-weight: 500; letter-spacing: -.02em;
  color: rgba(242,241,238,.32);
}

/* ------------------------------------------------------------------ testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 20px; }
.testimonial-card { display: flex; flex-direction: column; gap: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: clamp(24px,2.6vw,34px); }
.testimonial-quote { font-size: 16px; line-height: 1.6; color: var(--text-dim); flex: 1; }
.testimonial-foot { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--border); padding-top: 18px; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.testimonial-avatar-fallback {
  width: 46px; height: 46px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
}
.testimonial-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.testimonial-role { display: block; font-size: 13px; color: var(--text-dimmer); }

/* ------------------------------------------------- testimonials (Owl Carousel) */
/* Zobrazí se místo mřížky, pokud je referencí klientů víc než 3 (viz
   index.php — Owl Carousel 2 řeší mechaniku posouvání/tažení/snapování).
   Owlovy vestavěné šipky/tečky se nepoužívají (počítaly by tečky po
   "stránkách" karet, ne po jednotlivých kartách) — vlastní šipky a tečky
   se napojují na Owlův index v testimonials-owl-init.js. Šipky jsou
   vystředěné jen vůči .testimonials-owl-viewport (bez teček pod tím), aby
   seděly přesně na karty a nezasahovaly nikam mimo layout. */
.testimonials-owl-viewport { position: relative; }
.testimonials-owl .owl-stage-outer { padding: 6px 0 4px; }
.testimonials-owl .owl-stage { display: flex; }
.testimonials-owl .owl-item { display: flex; height: auto; }
.testimonials-owl .owl-item .testimonial-card { flex: 1; height: 100%; }

.carousel-arrow {
  all: unset; box-sizing: border-box; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; z-index: 5; transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.carousel-arrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-50%) scale(1.08); }
/* Na užších oknech (i s myší) zůstávají uvnitř, ať nic nepřekrývají ani
   neuřežou — na širokém desktopu se pak níž vystrčí ven z layoutu. */
.carousel-arrow--prev { left: 6px; }
.carousel-arrow--next { right: 6px; }

@media (min-width: 1100px) {
  .carousel-arrow--prev { left: -56px; }
  .carousel-arrow--next { right: -56px; }
}

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.carousel-dots button {
  all: unset; cursor: pointer; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(242,241,238,.2); transition: background .25s ease, transform .25s ease;
}
.carousel-dots button.active { background: var(--accent); transform: scale(1.35); }

/* "Chytře" podle schopnosti zařízení, ne podle šířky okna: šipky schováme
   jen tam, kde je hlavní ovládání dotykem (swipe) — na jakémkoliv zařízení
   s myší/trackpadem (i menším okně) zůstávají k dispozici. */
@media (hover: none), (pointer: coarse) {
  .carousel-arrow { display: none; }
}

/* -------------------------------------------------------------------------- faq */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: clamp(32px,5vw,72px); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.faq-question {
  all: unset; cursor: pointer; display: flex; width: 100%; box-sizing: border-box;
  gap: 20px; align-items: center; justify-content: space-between; padding: 22px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(16px,1.3vw,19px); color: var(--text);
}
.faq-icon { font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--accent); flex: none; transition: transform .3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .34s ease, opacity .25s ease; opacity: 0; }
.faq-item.open .faq-answer { opacity: 1; }
.faq-answer p { padding: 0 24px 24px; font-size: 16px; line-height: 1.6; color: var(--text-dim); }

/* ---------------------------------------------------------------------- contact */
.contact-section { position: relative; overflow: hidden; text-align: center; }
.contact-glow {
  position: absolute; bottom: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; background: radial-gradient(ellipse at center, rgba(200,255,61,.18), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.contact-inner { position: relative; display: flex; flex-direction: column; gap: 40px; align-items: center; }
.contact-lead { font-size: clamp(17px,1.5vw,20px); line-height: 1.55; color: var(--text-dim); max-width: 52ch; }
.contact-form-wrap {
  width: 100%; max-width: 760px; text-align: left; background: var(--surface);
  border: 1px solid var(--border); border-radius: 30px; padding: clamp(24px,3vw,44px);
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dimmer); }
.form-input, .form-textarea {
  background: var(--bg-alt); border: 1px solid rgba(242,241,238,.14); border-radius: 14px;
  padding: 15px 16px; color: var(--text); font-family: var(--font-body); font-size: 16px;
  outline: none; transition: border-color .25s ease; width: 100%;
}
.form-textarea { resize: vertical; line-height: 1.5; }
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-foot { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-note { font-size: 13px; color: var(--text-dimmer); max-width: 34ch; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-success { display: none; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: 26px 0; }
.form-success.visible { display: flex; }
.form-success .check { font-size: 40px; color: var(--accent); }
.form-success .title { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; }
.form-success .desc { font-size: 16px; color: var(--text-dim); max-width: 40ch; }
.form-error { color: #ff8a80; font-size: 14px; grid-column: 1/-1; display: none; }
.form-error.visible { display: block; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px,1.6vw,21px); }
.contact-links a { color: var(--text); }
.contact-links a:hover { color: var(--accent); }
.dot-sep { width: 5px; height: 5px; border-radius: 50%; background: rgba(242,241,238,.3); }
/* Na úzkém displeji se telefon a e-mail zalomí pod sebe — oddělovací tečka
   by pak osiřele visela na konci řádku. */
@media (max-width: 560px) {
  .contact-links { flex-direction: column; gap: 10px; }
  .contact-links .dot-sep { display: none; }
}

/* ---------------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; }
.site-footer__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--text-dimmer);
}
.site-footer__links { display: flex; gap: 22px; align-items: center; }
.site-footer__links a { color: rgba(242,241,238,.65); }
.site-footer__links a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ GDPR page */
.legal-page { padding: clamp(48px,7vw,90px) 0 clamp(72px,10vw,140px); }
.legal-content { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.legal-content h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px,4vw,48px); letter-spacing: -.02em; margin-top: 8px; }
.legal-content h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px,2.2vw,26px); letter-spacing: -.01em; margin-top: 18px; color: var(--accent); }
.legal-content p, .legal-content li { font-size: 16px; line-height: 1.7; color: var(--text-dim); }
.legal-content ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-content a { text-decoration: underline; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal-content th, .legal-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; color: var(--text-dim); vertical-align: top; }
.legal-content th { color: var(--text); font-family: var(--font-display); }

/* -------------------------------------------------------------- cookie consent */
.cookie-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  justify-content: center; padding: 16px;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent:not([hidden]) { display: flex; }
.cookie-consent__box {
  width: 100%; max-width: 920px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 22px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.cookie-consent__main { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.cookie-consent__text { font-size: 14px; line-height: 1.55; color: var(--text-dim); max-width: 56ch; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-consent__panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); flex-direction: column; gap: 14px; }
.cookie-consent__panel[hidden] { display: none; }
.cookie-consent__panel:not([hidden]) { display: flex; }
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.cookie-toggle small { display: block; color: var(--text-dimmer); font-size: 13px; margin-top: 2px; }
.cookie-toggle input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }

/* -------------------------------------------------------------------- reveal */
[data-reveal] { opacity: 0; }

@media (max-width: 720px) {
  .cookie-consent__main { flex-direction: column; align-items: stretch; }
  .cookie-consent__actions { justify-content: stretch; }
  .cookie-consent__actions .btn, .cookie-consent__actions .btn-outline, .cookie-consent__actions .btn-ghost { flex: 1; text-align: center; }
}
