/* Legal pages on cestoteka.com (English and German).
   Copied from the Czech legal.css. Missing Czech tokens and
   kicker / card / section-dark rules live only here, scoped so
   the rest of the English and German site stays unchanged. */

.legal-hero,
.legal-body {
  --ink: #1F2A23;
  --text-2: #4A4F4B;
  --muted: #5b554a;
  --green: #1F4536;
  --green-dark: #0F2A22;
  --green-deep: #16331f;
  --green-soft: #2F8A4E;
  --terra: #C25D3D;
  --mustard: #E0A93D;
  --paper: #FAF4E4;
  --sand: #F7EFDD;
  --cream: #F6EFE3;
  --white: #FFFFFF;
  --line: rgba(31, 42, 35, 0.16);
  --shadow-card: 0 1px 0 rgba(31,42,35,.05), 0 18px 40px -24px rgba(31,42,35,.28);
  --radius-card: 20px;
}

.section-dark { background: var(--green-dark); color: var(--cream); }
.section-dark h2,
.section-dark h3 { color: var(--cream); }
.section-dark .lead,
.section-dark p { color: rgba(246,239,227,.82); }
.section-dark .eyebrow { color: var(--mustard); }
.section-dark .pen-num,
.legal-hero .pen-num { background: rgba(246,239,227,.12); color: var(--cream); }

.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.legal-hero .eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mustard);
  margin: 0;
}
.pen {
  display: inline-flex; align-items: center; font-weight: 800; line-height: 1; color: var(--ink);
  padding: 7px 12px 7px 20px; font-size: 13px; letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
}
.pen-num { background: rgba(31,69,54,.10); color: var(--green); font-size: 12px; padding: 6px 10px 6px 16px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green); text-decoration: none; }
.link-arrow:hover { color: var(--terra); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}


/* ================================================================
   legal.css — Právní stránky Cestotéka (redesign)
   Vlastní styly; základní proměnné a komponenty jsou v styles.css
   ================================================================ */

/* ---- Hero ---------------------------------------------------- */
.legal-hero {
  padding: clamp(60px, 8vw, 96px) 0 clamp(52px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.legal-hero .wrap {
  position: relative;
  z-index: 1;
}

.legal-hero .kicker {
  margin-bottom: 28px;
}

.legal-hero h1 {
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.06;
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--cream);
}

.legal-hero .lead {
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 580px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.legal-hero-meta {
  display: flex;
  gap: 8px 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(246, 239, 227, 0.62);
}

/* Dekorativní motiv v hero — jemné vrstevnicové oblouky tón v tónu */
.legal-motif {
  position: absolute;
  right: -60px;
  bottom: -40px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Body ---------------------------------------------------- */
.legal-body {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 112px);
  background: var(--paper);
}

.legal-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* ---- TOC ---------------------------------------------------- */
.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 2px 14px rgba(31, 42, 35, 0.06);
}

.legal-toc-title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 0.45;
  margin-bottom: 12px;
  padding: 0 6px;
}

.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-n;
}

.legal-toc ol li {
  counter-increment: toc-n;
}

.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s;
  line-height: 1.35;
}

.legal-toc a::before {
  content: counter(toc-n, decimal-leading-zero);
  font-size: 10.5px;
  font-weight: 800;
  opacity: 0.4;
  flex-shrink: 0;
  padding-top: 2px;
  font-family: inherit;
}

.legal-toc a:hover {
  opacity: 1;
  background: var(--sand);
}

.legal-toc a.active {
  opacity: 1;
  background: var(--sand);
  font-weight: 800;
  color: var(--green);
}

/* ---- Karta s obsahem ---------------------------------------- */
.legal-content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3.5vw, 52px);
  box-shadow: var(--shadow-card);
}

/* ---- Typografie obsahu -------------------------------------- */
.legal-content {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}

.legal-content > h2 {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1.5px solid var(--line);
}

.legal-content > h2:first-child,
.legal-content > h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content > h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 26px 0 8px;
  opacity: 0.7;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul,
.legal-content ol {
  margin: 4px 0 18px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 7px;
}

/* Přizpůsobení odkazu v obsahu */
.legal-content a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.legal-content a:hover {
  color: var(--green-deep);
  text-decoration-color: var(--green);
}

.legal-content strong {
  font-weight: 800;
  color: inherit;
}

.legal-content .muted {
  color: var(--muted);
  font-size: 14px;
}

/* ---- Callout ------------------------------------------------ */
.legal-callout {
  background: var(--sand);
  border: 1.5px solid rgba(31, 42, 35, 0.13);
  border-radius: 12px;
  padding: 16px 18px 16px 50px;
  margin: 22px 0;
  font-size: 15.5px;
  line-height: 1.6;
  position: relative;
  /* ignoruje případný inline border-left-color z původního kódu */
}

/* Ikona informace — inline SVG jako data URI */
.legal-callout::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 17px;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231F4536' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='8' r='0.8' fill='%231F4536'/%3E%3Cpath d='M12 12 L12 16'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.75;
}

/* ---- Navigace na konci -------------------------------------- */
.legal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1.5px solid var(--line);
}

/* ---- Responzivita — pod 920 px skládáme do jednoho sloupce -- */
@media (max-width: 920px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-toc {
    position: static;
  }

  .legal-motif {
    display: none;
  }
}
