/* Spoločné štýly pre právne stránky, 404 a odkazy v pätičke */
.site-footer .footer-grid {
  grid-template-columns: 1.2fr 0.75fr 1fr 1fr;
}

.main-nav .nav-cta::after {
  display: none;
}

.legal-page {
  min-height: 100vh;
  padding: calc(var(--header-height) + 64px) 0 96px;
  background:
    radial-gradient(circle at 8% 12%, rgba(11, 77, 186, 0.18), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(227, 6, 19, 0.12), transparent 25%),
    var(--color-bg);
}

.legal-hero {
  max-width: 820px;
  margin-bottom: 42px;
}

.legal-hero h1 {
  margin-top: 16px;
  font-size: clamp(38px, 6vw, 68px);
}

.legal-hero p {
  max-width: 720px;
  font-size: clamp(16px, 1.6vw, 19px);
}

.legal-updated {
  display: inline-flex;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

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

.legal-content,
.legal-nav,
.error-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(18, 23, 29, 0.96), rgba(8, 11, 14, 0.98));
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.3);
}

.legal-content {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 30px;
}

.legal-section + .legal-section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.035em;
}

.legal-section h3 {
  margin-top: 24px;
  font-size: 20px;
}

.legal-section p,
.legal-section li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.legal-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a,
.legal-nav a,
.map-consent-content a {
  color: #72a9ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-gdpr a {
  color: #72a9ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-data-card {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-data-card strong {
  color: #ffffff;
}

.legal-placeholder {
  color: #ff9ca3;
  font-weight: 800;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
}

.legal-nav strong {
  margin-bottom: 4px;
}

.legal-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.legal-nav a:hover {
  color: #ffffff;
}

.cookie-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.cookie-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

.cookie-table th,
.cookie-table td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.cookie-table th {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
}

.cookie-table td {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
}

.cookie-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}

.cookie-status {
  margin: 0;
  font-size: 14px;
}

.map-consent {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 75% 30%, rgba(11, 77, 186, 0.24), transparent 32%),
    linear-gradient(145deg, #111820, #080b0f);
}

.map-consent-content {
  position: relative;
  z-index: 4;
  width: min(520px, 48%);
  margin-left: auto;
  padding: 34px;
}

.map-consent-content h3 {
  margin: 12px 0;
  font-size: clamp(24px, 3vw, 34px);
}

.map-consent-content p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.75);
}

.map-consent-content .btn {
  margin-right: 14px;
}

.map-consent-badge {
  color: #72a9ff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-consent.is-loaded {
  display: block;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: calc(var(--header-height) + 48px) 20px 64px;
  background:
    radial-gradient(circle at 20% 20%, rgba(11, 77, 186, 0.2), transparent 32%),
    radial-gradient(circle at 82% 24%, rgba(227, 6, 19, 0.16), transparent 30%),
    var(--color-bg);
}

.error-card {
  width: min(760px, 100%);
  padding: clamp(34px, 7vw, 72px);
  text-align: center;
  border-radius: 34px;
}

.error-card .footer-logo {
  width: 88px;
  margin: 0 auto 34px;
  padding: 6px;
  border-radius: 18px;
  background: #ffffff;
}

.error-code {
  display: block;
  color: transparent;
  background: linear-gradient(135deg, #438dff, #ffffff 45%, #ff3441);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(88px, 20vw, 180px);
  font-weight: 950;
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.error-card h1 {
  margin: 30px auto 16px;
  font-size: clamp(30px, 5vw, 50px);
}

.error-card p {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 17px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 1080px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .map-consent {
    min-height: 380px;
  }

  .map-consent-content {
    width: 100%;
    margin: 0;
    padding: 28px;
    text-align: center;
  }

  .map-consent-content .btn {
    width: 100%;
    margin: 0 0 16px;
  }
}

@media (max-width: 680px) {
  .site-footer .footer-grid,
  .legal-nav {
    grid-template-columns: 1fr;
  }

  .legal-page {
    padding-top: calc(var(--header-height) + 42px);
  }

  .legal-content {
    border-radius: 24px;
  }

  .error-actions .btn {
    width: 100%;
  }
}
