/**
 * Legal Page Styles
 * For /legal and /imprint pages
 */

/* Override shared.css body overflow for scrollable pages */
body {
  overflow: auto;
  overflow-x: hidden;
}

/* Page container */
.legal-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #fafbfc;
  color: #0d1329;
  font-family: 'DM Sans', sans-serif;
}

/* Content area */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Main title */
.legal-content h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #0d1329;
}

/* Last updated note */
.legal-updated {
  margin: 0 0 28px;
  font-size: 13px;
  color: rgba(13, 19, 41, 0.5);
}

/* Section headers */
.legal-content h3 {
  margin: 32px 0 14px;
  padding-top: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #0d1329;
  border-top: 1px solid rgba(13, 19, 41, 0.08);
}

.legal-content h3:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Subsection headers */
.legal-content h4 {
  margin: 20px 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #0d1329;
}

/* Paragraphs */
.legal-content p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(13, 19, 41, 0.8);
}

/* Lists */
.legal-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(13, 19, 41, 0.8);
}

.legal-content li strong {
  color: #0d1329;
  font-weight: 500;
}

.legal-content p strong {
  color: #0d1329;
  font-weight: 500;
}

/* Links */
.legal-content a {
  color: #0d1329;
  text-decoration: underline;
  text-decoration-color: rgba(13, 19, 41, 0.3);
  text-underline-offset: 2px;
}

.legal-content a:hover {
  text-decoration-color: #0d1329;
}

/* Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 20px;
  font-size: 13px;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(13, 19, 41, 0.1);
  color: rgba(13, 19, 41, 0.8);
  vertical-align: top;
}

.legal-table th {
  background: rgba(13, 19, 41, 0.03);
  font-weight: 600;
  color: #0d1329;
}

.legal-table tr:nth-child(even) td {
  background: rgba(13, 19, 41, 0.015);
}

/* Footer */
.legal-footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid rgba(13, 19, 41, 0.08);
  background: #fff;
}

.legal-footer p {
  margin: 0;
  font-size: 13px;
  color: rgba(13, 19, 41, 0.5);
}

.legal-footer a {
  color: rgba(13, 19, 41, 0.6);
  text-decoration: none;
}

.legal-footer a:hover {
  color: #0d1329;
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .legal-content {
    padding: 28px 18px 50px;
  }

  .legal-content h2 {
    font-size: 22px;
  }

  .legal-content h3 {
    font-size: 16px;
    margin: 24px 0 12px;
    padding-top: 16px;
  }

  .legal-content h4 {
    font-size: 14px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 13px;
  }

  .legal-table {
    font-size: 12px;
  }

  .legal-table th,
  .legal-table td {
    padding: 8px 10px;
  }
}
