/* Explore Nord — shared styles for legal pages
   (imprint, privacy, terms, accessibility) */

.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.legal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.legal-header h1 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  margin: 0 0 0.6rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.legal-subtitle {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.8rem;
  font-style: italic;
}

.legal-updated {
  font-size: 0.78rem;
  color: rgba(92, 224, 184, 0.7);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-section {
  margin-bottom: 2.6rem;
}

.legal-section h2 {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: #fff;
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.4rem 0 0.6rem;
  color: rgba(255, 255, 255, 0.92);
}

.legal-section p {
  margin: 0 0 1rem;
  font-size: 0.96rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.4rem;
  margin: 0 0 1.2rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
}

.legal-section a {
  color: var(--aurora-green, #5ce0b8);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: #fff;
}

.legal-section code {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.86em;
  color: rgba(255, 255, 255, 0.9);
}

/* Callout box for important content (e.g. TODO placeholders) */
.legal-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin: 1.2rem 0;
}

.legal-box.legal-todo {
  background: rgba(251, 191, 36, 0.05);
  border-color: rgba(251, 191, 36, 0.22);
}

.legal-box p {
  margin: 0 0 0.5rem;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

/* Placeholder markers — make it obvious the text must be filled in */
.todo {
  display: inline-block;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-family: 'SF Mono', monospace;
  font-size: 0.84em;
  letter-spacing: 0.02em;
}

/* Legal data table — used on the privacy policy */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.6rem;
  font-size: 0.86rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.legal-table th {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-table td {
  color: rgba(255, 255, 255, 0.78);
}

/* Contact card for supervisory authority / DPO etc */
.legal-contact-card {
  background: rgba(92, 224, 184, 0.05);
  border-left: 3px solid rgba(92, 224, 184, 0.5);
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 1rem 0;
}

.legal-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.legal-footer a {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0.3rem;
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--aurora-green, #5ce0b8);
}

/* Small screens */
@media (max-width: 640px) {
  .legal-page {
    padding: 2.5rem 1.2rem 4rem;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .legal-box {
    padding: 1rem 1.1rem;
  }
}

/* Light-mode support */
body.light-mode .legal-page {
  color: rgba(0, 0, 0, 0.78);
}

body.light-mode .legal-header h1,
body.light-mode .legal-section h2,
body.light-mode .legal-section h3 {
  color: rgba(0, 0, 0, 0.9);
}

body.light-mode .legal-subtitle {
  color: rgba(0, 0, 0, 0.55);
}

body.light-mode .legal-box {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .legal-table th {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.92);
}

body.light-mode .legal-table td {
  color: rgba(0, 0, 0, 0.72);
}
