/**
 * Veřejné právní dokumenty — vzhled A4 listu.
 */

.legal-page {
  --legal-ink: #1a1a1a;
  --legal-muted: #5a5a5a;
  --legal-page-width: 210mm;
  padding: 1.5rem 1rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal-page__toolbar {
  width: 100%;
  max-width: var(--legal-page-width);
  margin-bottom: 0.85rem;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--public-primary, #0c4890);
  text-decoration: none;
  font-size: 0.92rem;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 700;
}

.legal-page__back:hover {
  text-decoration: underline;
}

.legal-sheet {
  width: 100%;
  max-width: var(--legal-page-width);
  background: #fff;
  color: var(--legal-ink);
  border: 1px solid rgba(26, 46, 34, 0.12);
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(26, 46, 34, 0.04),
    0 18px 48px rgba(26, 46, 34, 0.1);
  padding: 22mm 20mm 24mm;
}

@media (max-width: 900px) {
  .legal-sheet {
    padding: 1.75rem 1.35rem 2.25rem;
  }
}

.legal-sheet__header {
  text-align: center;
  padding-bottom: 1.35rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid #d8d8d8;
}

.legal-sheet__eyebrow {
  margin: 0 0 0.55rem;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--legal-muted);
}

.legal-sheet__title {
  margin: 0 0 0.45rem;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--legal-ink);
  letter-spacing: -0.01em;
}

.legal-sheet__meta {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--legal-muted);
}

.legal-sheet__body {
  font-family: 'Times New Roman', 'Liberation Serif', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--legal-ink);
  text-align: justify;
}

.legal-sheet__body > :first-child {
  margin-top: 0;
}

.legal-sheet__body h2,
.legal-sheet__body h3,
.legal-sheet__body h4 {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--legal-ink);
  text-align: left;
  line-height: 1.3;
  font-weight: 800;
}

.legal-sheet__body h2 {
  margin: 1.65em 0 0.55em;
  font-size: 1.15rem;
  padding-bottom: 0.25em;
  border-bottom: 1px solid #e6e6e6;
}

.legal-sheet__body h3 {
  margin: 1.25em 0 0.4em;
  font-size: 1.05rem;
}

.legal-sheet__body h4 {
  margin: 1em 0 0.35em;
  font-size: 1rem;
}

.legal-sheet__body p {
  margin: 0 0 0.75em;
}

.legal-sheet__body ol,
.legal-sheet__body ul {
  margin: 0 0 0.85em;
  padding-left: 1.4em;
}

.legal-sheet__body li {
  margin: 0 0 0.4em;
  padding-left: 0.15em;
}

.legal-sheet__body ol ol,
.legal-sheet__body ol ul,
.legal-sheet__body ul ol,
.legal-sheet__body ul ul {
  margin: 0.35em 0 0.2em;
}

.legal-sheet__body ul[data-cancellation-rules] {
  list-style: disc;
  margin-top: 0.45em;
  margin-bottom: 0.45em;
}

.legal-sheet__body a {
  color: var(--public-primary-dark, #0c3060);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-sheet__body a:hover {
  color: var(--public-primary, #0c4890);
}

.legal-sheet__body strong {
  font-weight: 700;
}

.legal-sheet__body em {
  font-style: italic;
  color: #333;
}

.legal-sheet__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85em 0 1.1em;
  font-size: 0.95em;
}

.legal-sheet__body th,
.legal-sheet__body td {
  border: 1px solid #ccc;
  padding: 0.4em 0.55em;
  text-align: left;
  vertical-align: top;
}

.legal-sheet__body th {
  background: #f3f3f3;
  font-weight: 700;
}

.legal-sheet__empty {
  margin: 0;
  color: var(--legal-muted);
  text-align: center;
  font-family: 'Nunito', system-ui, sans-serif;
}

@media (max-width: 640px) {
  .legal-sheet {
    padding: 1.5rem 1.15rem 2rem;
  }

  .legal-sheet__title {
    font-size: 1.45rem;
  }

  .legal-sheet__body {
    text-align: left;
    font-size: 1rem;
  }
}

@media print {
  .public-header,
  .public-footer,
  .cookie-banner,
  .legal-page__toolbar,
  .public-skip {
    display: none !important;
  }

  .public-body {
    background: #fff;
  }

  .legal-page {
    padding: 0;
  }

  .legal-sheet {
    max-width: none;
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 20mm 22mm;
  }

  .legal-sheet__body a {
    color: inherit;
    text-decoration: none;
  }
}
