/* Shared legal article layout — Privacy, Cookie Notice, Imprint */

.site-main.legal-page.content-page {
  background: #f8fafc;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.legal-shell {
  --legal-gutter-left: clamp(48px, 9vw, 180px);
  --legal-gutter-right: clamp(24px, 4vw, 48px);
  width: min(960px, calc(100% - var(--legal-gutter-left) - var(--legal-gutter-right)));
  max-width: 960px;
  margin-left: var(--legal-gutter-left);
  margin-right: auto;
  padding: 0 0 60px;
  box-sizing: border-box;
}

.legal-header {
  margin-bottom: 0;
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(1.78rem, 4vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.legal-meta,
.legal-updated {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.legal-meta strong,
.legal-updated strong {
  color: #334155;
  font-weight: 600;
}

.legal-header h1 + .legal-intro {
  margin-top: 10px;
  max-width: none;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.65;
}

.legal-meta + .legal-intro,
.legal-updated + .legal-intro {
  margin-top: 18px;
  max-width: 900px;
  color: #334155;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-body {
  max-width: 100%;
}

.legal-section {
  padding: 20px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.legal-body > .legal-section:first-of-type {
  margin-top: 16px;
  border-top: none;
  padding-top: 0;
}

.legal-section:last-of-type {
  padding-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.legal-section p {
  margin: 0 0 12px;
  max-width: 900px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #334155;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 1.25rem;
  max-width: 900px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #334155;
}

.legal-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-section a,
.legal-page a:not(.nav-link):not(.nav-brand):not(.dropdown-country) {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-section a:hover,
.legal-page a:not(.nav-link):not(.nav-brand):not(.dropdown-country):hover {
  text-decoration: underline;
}

.legal-contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  max-width: 900px;
}

.legal-contact-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: baseline;
}

.legal-contact-list span {
  font-size: 0.96rem;
  color: #64748b;
  line-height: 1.5;
}

.legal-contact-list a {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.5;
  word-break: break-all;
}

.legal-section ul.cookie-tech-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

.legal-section ul.cookie-tech-list > li {
  padding: 0;
  margin: 0 0 8px;
  line-height: 1.65;
}

.legal-section ul.cookie-tech-list > li:last-child {
  margin-bottom: 0;
}

.legal-section ul.cookie-tech-list > li strong {
  display: inline-block;
  margin-bottom: 0.18rem;
  color: #0f172a;
}

.legal-section .cookie-tech-note {
  margin-top: 12px;
  max-width: 900px;
}

.cookie-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 6px;
  max-width: 900px;
}

.cookie-category-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.cookie-category-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cookie-category-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.cookie-category-card p {
  margin: 0;
  max-width: none;
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.6;
}

.cookie-category-card p strong {
  color: #0f172a;
  font-weight: 600;
}

.cookie-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.cookie-status--active {
  color: #166534;
  background: #dcfce7;
}

.cookie-status--optional {
  color: #1d4ed8;
  background: #dbeafe;
}

.cookie-status--unused {
  color: #475569;
  background: #e2e8f0;
}

.legal-consent-action-wrap {
  margin: 4px 0 16px;
  max-width: 900px;
}

.legal-consent-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: #ffffff;
  color: #2563eb;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.legal-consent-action:hover {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.55);
  text-decoration: none;
}

.legal-consent-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

/* Consent / Privacy Preferences page */
.consent-page .legal-header .legal-intro {
  margin-top: 10px;
  max-width: 900px;
}

.consent-inline-actions {
  margin: 4px 0 0;
}

.consent-inline-actions .gst-btn {
  border: none;
}

@media (max-width: 700px) {
  .cookie-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .legal-shell {
    --legal-gutter-left: 16px;
    --legal-gutter-right: 16px;
    width: min(100%, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 52px;
  }

  .legal-body > .legal-section:first-of-type {
    margin-top: 16px;
  }

  .legal-section {
    padding: 18px 0;
  }

  .legal-contact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
