/* =====================================================================
   dashfly.io – web
   Dvě nálady: tmavá technologická (dashfly) a pergamenová (Legacy).
   ===================================================================== */

:root {
  /* dashfly */
  --ink-night: #05070d;
  --ink-night-2: #0b1020;
  --df-blue: #2272ff;
  --df-sky: #32afec;
  --df-mint: #3decc4;
  --df-lime: #a1ff36;
  --df-gradient: linear-gradient(90deg, #2272ff 0%, #32afec 35%, #3decc4 65%, #a1ff36 100%);

  /* Legacy */
  --parchment: #fdf5e6;
  --parchment-2: #f6e7c8;
  --parchment-3: #ebd9ae;
  --ink: #3e2723;
  --ink-soft: #6d4c41;
  --rim: #8b5a2b;
  --gold: #c9a227;
  --gold-dark: #8a6500;
  --sage: #6e7d43;
  --rust: #b5441f;

  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;

  --radius: 22px;
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Hlavička
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 13, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.site-header--light,
.site-header--light.is-scrolled {
  background: rgba(253, 245, 230, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(139, 90, 43, .15);
}

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

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { height: 30px; width: auto; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.site-header--light .nav-links a { color: var(--ink-soft); }
.site-header--light .nav-links a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav-links { gap: 18px; }
  .nav-links li:not(.nav-keep) { display: none; }
}

/* ---------------------------------------------------------------------
   Hero (dashfly)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(620px, 100vh, 980px);
  min-height: clamp(620px, 100svh, 980px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 600px at 78% 30%, rgba(50, 175, 236, .16), transparent 60%),
    radial-gradient(700px 500px at 15% 80%, rgba(61, 236, 196, .10), transparent 60%),
    var(--ink-night);
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 0 140px;
}

.hero-logo svg {
  width: min(520px, 82vw);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(50, 175, 236, .35));
}

.hero h1 {
  margin: 34px auto 18px;
  max-width: 780px;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
}

.gradient-text {
  background: var(--df-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255, 255, 255, .72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  cursor: pointer;
  border: 0;
}
.btn:hover { transform: translateY(-2px); }

.btn-glow {
  color: #041018;
  background: var(--df-gradient);
  box-shadow: 0 10px 30px rgba(50, 175, 236, .35);
}
.btn-glow:hover { box-shadow: 0 14px 38px rgba(61, 236, 196, .45); }

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--df-mint);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Přechod z noci do pergamenu */
.dawn {
  height: 180px;
  background: linear-gradient(180deg, var(--ink-night) 0%, #2a2219 45%, var(--parchment) 100%);
}

/* ---------------------------------------------------------------------
   Pergamenové sekce (Legacy)
   --------------------------------------------------------------------- */
.paper {
  position: relative;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(235, 217, 174, .55), transparent 60%),
    var(--parchment);
}

/* Jemná textura papíru bez obrázku */
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(rgba(139, 107, 62, .07) 1px, transparent 1.4px),
    radial-gradient(rgba(139, 107, 62, .05) 1px, transparent 1.6px);
  background-size: 23px 23px, 37px 37px;
  background-position: 0 0, 11px 17px;
}

.section {
  position: relative;
  padding: 110px 0;
}

.section-tight { padding: 70px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rim);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.serif-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.15;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}
.section-head h2 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 4vw, 46px);
}
.section-head p {
  margin: 0;
  font-size: 18px;
  color: var(--ink-soft);
}

/* Ornament */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 26px auto 0;
  color: rgba(139, 90, 43, .55);
}
.ornament span {
  width: 70px;
  height: 1px;
  background: currentColor;
}
.ornament i {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: currentColor;
}

/* ---------------------------------------------------------------------
   Legacy intro
   --------------------------------------------------------------------- */
.legacy-intro {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px 10px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1px rgba(139, 90, 43, .2), 0 10px 30px rgba(62, 39, 35, .08);
}
.app-badge img {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.app-badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.1;
}
.app-badge small {
  color: var(--ink-soft);
  font-size: 13px;
}

.legacy-intro h2 {
  margin: 28px 0 20px;
  font-size: clamp(34px, 4.6vw, 56px);
}

.legacy-intro .lead {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 23px);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.legacy-intro p { font-size: 17px; margin: 0 0 16px; }

.legacy-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(62, 39, 35, .22), 0 0 0 1px rgba(139, 90, 43, .25);
  transform: rotate(1.5deg);
}
.legacy-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.legacy-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(62, 39, 35, .35));
}
.legacy-art figcaption {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: #fff8ea;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

@media (max-width: 900px) {
  .legacy-intro { grid-template-columns: 1fr; gap: 50px; }
  .legacy-art { max-width: 460px; margin-inline: auto; }
}

/* ---------------------------------------------------------------------
   Telefony se screenshoty
   --------------------------------------------------------------------- */
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(16px, 3vw, 44px);
  padding: 20px 0 10px;
}

.phone {
  position: relative;
  width: clamp(200px, 23vw, 270px);
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(145deg, #2b2520, #0f0c0a);
  box-shadow:
    0 0 0 1.5px #4a4038,
    0 40px 70px -20px rgba(62, 39, 35, .55),
    0 18px 30px -12px rgba(62, 39, 35, .35);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.phone-wrap:nth-child(1) .phone { transform: rotate(-5deg) translateY(10px); }
.phone-wrap:nth-child(2) { z-index: 2; }
.phone-wrap:nth-child(2) .phone { transform: translateY(-34px) scale(1.06); }
.phone-wrap:nth-child(3) .phone { transform: rotate(5deg) translateY(10px); }
.phone-wrap .phone:hover { transform: translateY(-46px) scale(1.08) rotate(0deg); }
.phone-wrap:hover { z-index: 3; }

.phone::before {
  /* průstřel kamery */
  content: "";
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: #050505;
  box-shadow: 0 0 0 2px #1c1814;
}

.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(253, 245, 230, .2), rgba(235, 217, 174, .55)),
    url("../img/legacy-path.webp") center / cover;
}

.phone .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone .placeholder {
  position: absolute;
  inset: auto 14px 18px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(253, 251, 247, .9);
  box-shadow: 0 0 0 1px rgba(139, 90, 43, .3);
  font-size: 12px;
  text-align: center;
  color: var(--ink-soft);
}

.phone-caption {
  margin-top: 22px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
}
.phone-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }

@media (max-width: 760px) {
  .phones {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 50px 24px 20px;
    margin-inline: -20px;
  }
  .phone-wrap { scroll-snap-align: center; flex: 0 0 auto; }
  .phone { width: 230px; }
  .phone-wrap:nth-child(n) .phone { transform: none; }
}

/* ---------------------------------------------------------------------
   Moduly
   --------------------------------------------------------------------- */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.module {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: var(--radius);
  background: rgba(253, 251, 247, .85);
  box-shadow: 0 0 0 1px rgba(139, 90, 43, .2), 0 20px 50px -20px rgba(62, 39, 35, .25);
  transition: transform .35s ease, box-shadow .35s ease;
}
.module:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(139, 90, 43, .3), 0 30px 60px -20px rgba(62, 39, 35, .32);
}

.module-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-soft);
  color: var(--parchment);
  box-shadow: 0 0 0 5px var(--parchment), 0 0 0 6px rgba(139, 90, 43, .3);
  margin-bottom: 22px;
}
.module-icon svg { width: 30px; height: 30px; }

.module h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 25px;
}
.module .tagline {
  margin: 0 0 16px;
  font-style: italic;
  color: var(--rim);
}
.module p { margin: 0 0 16px; }

.module ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 15px;
}
.module li {
  position: relative;
  padding-left: 22px;
}
.module li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
}

@media (max-width: 960px) {
  .modules { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
}

/* ---------------------------------------------------------------------
   Příběhy (marketingové citace)
   --------------------------------------------------------------------- */
.stories {
  background:
    linear-gradient(180deg, rgba(62, 39, 35, .92), rgba(46, 29, 25, .96)),
    url("../img/legacy-path.webp") center / cover fixed;
  color: var(--parchment);
}
.stories .eyebrow { color: #e6c98a; }
.stories .section-head h2 { color: #fff8ea; }
.stories .section-head p { color: rgba(253, 245, 230, .75); }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.story {
  position: relative;
  padding: 30px 28px 26px;
  border-radius: var(--radius);
  background: rgba(253, 245, 230, .06);
  box-shadow: inset 0 0 0 1px rgba(230, 201, 138, .22);
}
.story::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 22px;
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1;
  color: rgba(230, 201, 138, .45);
}
.story blockquote {
  margin: 38px 0 16px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: #fff8ea;
}
.story .who {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e6c98a;
}

@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .story-grid { grid-template-columns: 1fr; }
  .stories { background-attachment: scroll; }
}

/* ---------------------------------------------------------------------
   Jak to funguje
   --------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 0 10px;
}
.step-num {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, #f7e08a, #c9a227 50%, #fff1b8 75%, #a67c00);
  box-shadow: 0 8px 20px rgba(201, 162, 39, .35);
}
.step h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
}
.step p { margin: 0; color: var(--ink-soft); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Legendary + stažení
   --------------------------------------------------------------------- */
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 50px 54px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fffaeb, #fdf3d6);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, .55), 0 30px 70px -25px rgba(138, 101, 0, .45);
  overflow: hidden;
}
.cta-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .28), transparent 70%);
}
.cta-card h2 {
  margin: 12px 0 12px;
  font-size: clamp(28px, 3.4vw, 40px);
}
.cta-card p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.cta-card .eyebrow { color: var(--gold-dark); }

.play-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px 14px 20px;
  border-radius: 16px;
  background: #111;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  white-space: nowrap;
}
.play-btn svg { width: 30px; height: 30px; }
.play-btn small { display: block; font-size: 11px; letter-spacing: .06em; opacity: .75; text-transform: uppercase; }
.play-btn strong { display: block; font-size: 19px; line-height: 1.15; }

@media (max-width: 760px) {
  .cta-card { grid-template-columns: 1fr; padding: 38px 28px; text-align: center; }
  .cta-card .play-btn { justify-self: center; }
}

/* ---------------------------------------------------------------------
   O firmě (tmavá)
   --------------------------------------------------------------------- */
.about {
  background: var(--ink-night);
  color: #fff;
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(34, 114, 255, .18), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(161, 255, 54, .08), transparent 60%);
}
.about .container { position: relative; }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
}
.about h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.about p { color: rgba(255, 255, 255, .72); font-size: 17px; margin: 0 0 14px; }

.facts {
  display: grid;
  gap: 14px;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.fact { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; }
.fact span { color: rgba(255, 255, 255, .55); }
.fact strong { font-weight: 600; text-align: right; }
.fact a { text-decoration: none; }
.fact a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Patička
   --------------------------------------------------------------------- */
.site-footer {
  background: #03050a;
  color: rgba(255, 255, 255, .6);
  padding: 40px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, .8); }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo svg { height: 22px; }

/* ---------------------------------------------------------------------
   Právní stránky
   --------------------------------------------------------------------- */
.legal-hero {
  padding: 140px 0 50px;
  text-align: center;
}
.legal-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 4.4vw, 50px);
}
.legal-hero p { margin: 0; color: var(--ink-soft); }

.legal {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 50px;
  align-items: start;
  padding-bottom: 110px;
}

.toc {
  position: sticky;
  top: 100px;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: rgba(253, 251, 247, .75);
  box-shadow: 0 0 0 1px rgba(139, 90, 43, .2);
  font-size: 14px;
}
.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rim);
}
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--ink); text-decoration: underline; }

.legal-body {
  padding: 46px 54px;
  border-radius: 26px;
  background: rgba(253, 251, 247, .9);
  box-shadow: 0 0 0 1px rgba(139, 90, 43, .2), 0 30px 70px -30px rgba(62, 39, 35, .3);
  font-size: 16.5px;
}
.legal-body h2 {
  margin: 46px 0 14px;
  padding-top: 10px;
  font-family: var(--font-serif);
  font-size: 26px;
  scroll-margin-top: 100px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  margin: 26px 0 8px;
  font-size: 17px;
}
.legal-body p, .legal-body li { color: #4e342e; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--rim); }

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 15px;
}
.legal-body th, .legal-body td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(139, 90, 43, .18);
}
.legal-body th {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rim);
}

.note {
  margin: 18px 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(201, 162, 39, .12);
  box-shadow: inset 3px 0 0 var(--gold);
}

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
  .legal-body { padding: 32px 24px; }
  .legal-body table { display: block; overflow-x: auto; }
}

/* ---------------------------------------------------------------------
   Animace při posunu
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }

.float { animation: float 7s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(1.5deg); }
  50% { transform: translateY(-10px) rotate(.8deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .scroll-hint::after { animation: none; }
}
