/* Shared premium presentation for the Cookie and Privacy Policy pages. */
.premium-legal-page {
  --legal-panel: #111820;
  --legal-border: rgba(210, 231, 245, 0.14);
  --legal-text: #f4f8fb;
  --legal-muted: #a8b6c3;
  --legal-accent: #66fcf1;
  margin: 0;
  width: 100%;
  padding: calc(var(--site-header-height) + 56px) 0 0 !important;
  color: var(--legal-text);
  background:
    radial-gradient(circle at 8% 4%, rgba(70, 144, 168, 0.16), transparent 31rem),
    radial-gradient(circle at 90% 20%, rgba(102, 252, 241, 0.07), transparent 28rem),
    linear-gradient(180deg, #0b1016 0%, #090d12 48%, #080b0f 100%);
}

.premium-legal-page .legal-page {
  width: min(calc(100% - 36px), 1225px);
  margin: 0 auto;
  padding: clamp(28px, 3vw, 42px) 0 clamp(68px, 8vw, 110px);
}

.premium-legal-page .legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 clamp(22px, 3vw, 34px);
  padding: clamp(34px, 6vw, 74px);
  color: var(--legal-text);
  text-align: left;
  background: linear-gradient(120deg, rgba(18, 27, 36, 0.98), rgba(10, 15, 21, 0.96));
  border: 1px solid var(--legal-border);
  border-radius: 30px;
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.premium-legal-page .legal-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--legal-accent) 28%, var(--legal-accent) 72%, transparent);
  box-shadow: 0 0 30px rgba(102, 252, 241, 0.5);
}

.premium-legal-page .legal-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  right: -110px;
  top: -155px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 252, 241, 0.13), transparent 68%);
  pointer-events: none;
}

.premium-legal-page .legal-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff !important;
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-size: clamp(2.05rem, 5vw, 4.5rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.premium-legal-page .legal-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--legal-muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
}

.premium-legal-page .legal-updated {
  display: block;
  width: fit-content;
  margin-top: 28px;
  padding: 2px 0 2px 13px;
  color: var(--legal-accent);
  background: transparent;
  border: 0;
  border-left: 2px solid var(--legal-accent);
  border-radius: 0;
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.premium-legal-page .legal-content {
  display: grid;
  gap: 16px;
}

.premium-legal-page .legal-section {
  position: relative;
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
  color: var(--legal-muted);
  background: linear-gradient(145deg, rgba(20, 29, 38, 0.96), rgba(13, 19, 26, 0.98));
  border: 1px solid var(--legal-border);
  border-radius: 18px;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.premium-legal-page .legal-section h2 {
  margin: 0 0 18px;
  color: #fff !important;
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.premium-legal-page .legal-section h2::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  margin: 0 12px 0 0;
  vertical-align: 0.3em;
  background: var(--legal-accent);
  box-shadow: 0 0 16px rgba(102, 252, 241, 0.45);
}

.premium-legal-page .legal-section h3 {
  margin: 26px 0 9px;
  color: #dffefa;
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.premium-legal-page .legal-section p,
.premium-legal-page .legal-section li {
  color: var(--legal-muted);
  font-size: 0.98rem;
  line-height: 1.78;
}

.premium-legal-page .legal-section p {
  margin: 0 0 14px;
}

.premium-legal-page .legal-section p:last-child,
.premium-legal-page .legal-section ul:last-child,
.premium-legal-page .legal-section ol:last-child {
  margin-bottom: 0;
}

.premium-legal-page .legal-section ul,
.premium-legal-page .legal-section ol {
  margin: 12px 0 20px;
  padding-left: 1.35rem;
}

.premium-legal-page .legal-section li {
  padding-left: 0.35rem;
  margin-bottom: 9px;
}

.premium-legal-page .legal-section li::marker {
  color: var(--legal-accent);
}

.premium-legal-page .legal-section strong {
  color: #edf7fb;
  font-weight: 650;
}

.premium-legal-page .legal-section a {
  color: var(--legal-accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.premium-legal-page .legal-section a:hover {
  color: #c8fffa;
  text-decoration-color: transparent;
}

.premium-legal-page .legal-section table {
  width: 100%;
  margin-top: 22px;
  color: var(--legal-muted);
  background: rgba(5, 10, 15, 0.38);
  border: 1px solid var(--legal-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

.premium-legal-page .legal-section thead {
  background: rgba(102, 252, 241, 0.08);
}

.premium-legal-page .legal-section th,
.premium-legal-page .legal-section td {
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid rgba(210, 231, 245, 0.1);
  text-align: left;
  vertical-align: top;
}

.premium-legal-page .legal-section th {
  color: #dffefa;
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.premium-legal-page .legal-section td {
  font-size: 0.92rem;
  line-height: 1.65;
}

.premium-legal-page .legal-section tbody tr:last-child td {
  border-bottom: 0;
}

.premium-legal-page .legal-cookie-settings-button,
.premium-legal-page [data-open-cookie-settings] {
  min-height: 48px;
  margin-top: 12px;
  padding: 13px 20px;
  color: #061111;
  background: var(--legal-accent);
  border: 1px solid var(--legal-accent);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(102, 252, 241, 0.15);
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.premium-legal-page .legal-cookie-settings-button:hover,
.premium-legal-page [data-open-cookie-settings]:hover {
  background: #a9fff8;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(102, 252, 241, 0.22);
}

.premium-legal-page .legal-cookie-settings-button:focus-visible,
.premium-legal-page [data-open-cookie-settings]:focus-visible,
.premium-legal-page .legal-section a:focus-visible {
  outline: 2px solid var(--legal-accent);
  outline-offset: 4px;
}

.premium-legal-page .legal-contact,
.premium-legal-page .legal-section:last-child {
  background: linear-gradient(145deg, rgba(22, 38, 46, 0.95), rgba(12, 20, 27, 0.98));
}

@media (max-width: 760px) {
  .premium-legal-page .legal-page {
    width: min(calc(100% - 24px), 1225px);
    padding-top: 28px;
    padding-bottom: 72px;
  }

  .premium-legal-page .legal-hero {
    padding: 30px 24px 32px;
    border-radius: 20px;
  }

  .premium-legal-page .legal-hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 1.02;
  }

  .premium-legal-page .legal-hero p {
    margin-top: 17px;
    line-height: 1.65;
  }

  .premium-legal-page .legal-updated {
    margin-top: 22px;
  }

  .premium-legal-page .legal-section {
    padding: 24px 20px;
    border-radius: 15px;
  }

  .premium-legal-page .legal-section h2::before {
    width: 18px;
    margin-right: 9px;
  }

  .premium-legal-page .legal-section table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .premium-legal-page .legal-section th,
  .premium-legal-page .legal-section td {
    min-width: 150px;
    padding: 14px;
  }

  .premium-legal-page .legal-cookie-settings-button,
  .premium-legal-page [data-open-cookie-settings] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-legal-page *,
  .premium-legal-page *::before,
  .premium-legal-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
