/* Legal pages (privacy.html): long-form policy text in the News/Blog look */

.legal-hero .news-pill { margin: 0; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 60px); }

.legal-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 16px 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}
@media (min-width: 768px) { .legal-layout { padding: 56px 24px 96px; } }

.legal-toc {
  flex: 1 1 260px;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--news-line);
  border-radius: 12px;
  padding: 20px 20px 12px;
  font-size: 14px;
}
@media (min-width: 992px) { .legal-toc { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; } }
@media (max-width: 991px) { .legal-toc { max-width: none; } }
.legal-toc__title { margin: 0 0 8px; font-family: 'Archivo', sans-serif; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--news-muted); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; }
.legal-toc li { border-top: 1px solid var(--news-line); }
.legal-toc li:first-child { border-top: 0; }
.legal-toc a { display: block; padding: 8px 0; line-height: 1.4; color: var(--news-ink); }
.legal-toc a:hover { color: var(--news-teal); }

.legal-doc {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 800px;
  background: #fff;
  border: 1px solid var(--news-line);
  border-radius: 16px;
  padding: 32px 20px;
  color: #1f3a45;
  font-size: 16px;
  line-height: 1.7;
}
@media (min-width: 768px) { .legal-doc { padding: 48px; } }
.legal-doc > p:first-child { margin: 0 0 8px; font-size: 14px; color: var(--news-muted); }
.legal-doc section { margin-top: 40px; }
.legal-doc h2 {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  color: var(--news-ink);
  scroll-margin-top: 96px;
}
.legal-doc h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 600; color: var(--news-ink); }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px; padding-left: 22px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc a { color: var(--news-teal); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-doc strong { color: var(--news-ink); }

.legal-table { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--news-line); border-radius: 10px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th { background: #f3f8fa; text-align: left; font-weight: 600; color: var(--news-ink); padding: 10px 14px; border-bottom: 1px solid var(--news-line); }
.legal-table td { padding: 10px 14px; border-top: 1px solid var(--news-line); vertical-align: top; }
.legal-table tr:first-child td { border-top: 0; }

.legal-contact { background: var(--news-wash); border-radius: 12px; padding: 20px; margin: 0 0 16px; }
.legal-contact p { margin: 0 0 8px; }
.legal-contact p:last-child { margin-bottom: 0; }
.legal-small { font-size: 13px; color: var(--news-muted); }

/* =================================================== */
/* Consent Withdrawal Trigger & Modal (privacy.html)   */
/* =================================================== */
.consent-trigger-link {
  color: var(--news-teal, #004259);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.consent-trigger-link:hover {
  color: #0a7ea8;
  text-decoration: underline;
}

.consent-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(13, 42, 53, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 40px 16px;
  box-sizing: border-box;
}

.consent-modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 16px 0;
}

.consent-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  margin: auto;
  padding: 36px 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 42, 58, 0.25), 0 4px 16px rgba(0, 0, 0, 0.08);
  animation: consentFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes consentFadeIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.consent-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.consent-modal-close:hover {
  color: #0d2a35;
  transform: scale(1.1);
}

.consent-modal-title {
  margin: 0 0 12px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #2b3d51;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.consent-modal-desc {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #55697d;
}

.consent-form-group {
  margin-bottom: 22px;
}

.consent-form-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #2b3d51;
  margin-bottom: 8px;
}

.consent-req-star {
  color: #e11d48;
  font-weight: bold;
  margin-left: 2px;
}

.consent-text-input {
  width: 100%;
  padding: 11px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14.5px;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.consent-text-input:focus {
  background: #ffffff;
  border-color: #004259;
  box-shadow: 0 0 0 3px rgba(0, 66, 89, 0.12);
}

.consent-text-input.input-error {
  border-color: #e11d48;
  background-color: #fff5f5;
}

.consent-note-box {
  font-size: 13.5px;
  line-height: 1.5;
  color: #55697d;
  margin: 0 0 12px;
}

.consent-radio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consent-radio-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #1e293b;
}

.consent-radio-item input[type="radio"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: #004259;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-opt-headline {
  font-weight: 600;
  color: #1e293b;
}

.consent-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #334155;
}

.consent-checkbox-item input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: #004259;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-field-error {
  display: none;
  font-size: 12.5px;
  color: #e11d48;
  margin-top: 6px;
  font-weight: 500;
}

.consent-field-error.show {
  display: block;
}

.consent-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

.consent-btn-submit {
  background: #004259;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 11px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.consent-btn-submit:hover {
  background: #005a75;
  box-shadow: 0 4px 14px rgba(0, 66, 89, 0.25);
}

.consent-btn-submit:active {
  background: #003a4d;
  transform: translateY(1px);
}

.consent-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success view */
.consent-success-view {
  display: none;
  text-align: center;
  padding: 24px 8px 12px;
}

.consent-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: #e6f7ef;
  color: #0d8a4e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
}

.consent-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #0d2a35;
  margin-bottom: 12px;
}

.consent-success-text {
  font-size: 14.5px;
  color: #4f6f7c;
  line-height: 1.6;
  margin-bottom: 24px;
}

.consent-btn-done {
  background: #004259;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.consent-btn-done:hover {
  background: #00293a;
}
