.legal-page {
  min-height: 80vh;
  padding: 120px 20px 80px;
}

.legal-page__inner {
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(var(--bg2-rgb), 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.legal-page__title {
  font-family: "Outfit", "Sora", sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.legal-page__updated {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-family: "Outfit", "Sora", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}

.legal-page h3 {
  font-family: "Outfit", "Sora", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

.legal-page p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.legal-page li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 8px;
  padding-left: 4px;
}

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

.legal-page a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.legal-page a:hover {
  border-bottom-color: var(--accent);
}

.legal-page strong {
  color: var(--text);
  font-weight: 600;
}

/* Cookie preferences toggles */
.cookie-prefs-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  background: rgba(var(--bg2-rgb), 0.5);
}

.cookie-prefs-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cookie-prefs-section__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.cookie-prefs-section__desc {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-toggle__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
  background: #fff;
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-prefs-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cookie-prefs-btn {
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--accent);
  background: rgba(0, 240, 255, 0.14);
  color: var(--text);
  font-family: inherit;
  transition: background 0.2s;
}

.cookie-prefs-btn:hover {
  background: rgba(0, 240, 255, 0.22);
}

.cookie-prefs-btn--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.cookie-prefs-btn--primary:hover {
  background: var(--accent-hover, var(--accent));
  opacity: 0.9;
}

/* Cookie prefs inline messages */
.cookie-prefs-msg {
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.cookie-prefs-msg--success {
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.25);
  color: #00c853;
}

.cookie-prefs-msg--info {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--accent);
}

@media (max-width: 640px) {
  .legal-page__inner {
    padding: 28px 20px;
    border-radius: 12px;
  }

  .legal-page {
    padding: 90px 20px 80px;
  }

  .legal-page h2 {
    font-size: 17px;
  }

  .cookie-prefs-actions {
    flex-direction: column;
  }

  .cookie-prefs-btn {
    width: 100%;
    text-align: center;
  }
}
