/* ============================================================
   MORE DAYS STUDIO — Legal Pages
   Extracted from original styles.css — unchanged
   ============================================================ */

.legal-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 104px 24px 64px;
}

/* ---- Sidebar ---- */
.legal-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}
.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-nav-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 12px;
  display: block;
}
.legal-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
}
.legal-nav-link:hover {
  color: #0f172a;
  background: #f8fafc;
}
.legal-nav-link.active {
  background: #dc2626;
  color: white;
  font-weight: 600;
  border-left-color: transparent;
}
.legal-nav-link.active:hover {
  background: #b91c1c;
  color: white;
}
.legal-sidebar-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 20px 0;
}
.legal-help-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
}
.legal-help-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}
.legal-help-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 100%;
}
.legal-help-card a {
  font-size: 13px;
  font-weight: 500;
  color: #dc2626;
  text-decoration: none;
}
.legal-help-card a:hover {
  text-decoration: underline;
  color: #b91c1c;
}

/* ---- Content area ---- */
.legal-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}
.legal-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}
.legal-subtitle {
  font-size: 16px;
  color: #64748b;
  line-height: 1.5;
  max-width: 100%;
  margin-bottom: 16px;
}
.legal-meta {
  margin-top: 4px;
}
.legal-meta-badge {
  display: inline-flex;
  font-size: 13px;
  color: #64748b;
  background: #f8fafc;
  padding: 6px 14px;
  border-radius: 8px;
}

/* ---- Legal typography ---- */
.legal-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-top: 48px;
  margin-bottom: 20px;
  line-height: 1.3;
}
.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.legal-content p {
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 100%;
}
.legal-content strong {
  color: #0f172a;
  font-weight: 600;
}
.legal-content a {
  color: #dc2626;
  font-weight: 500;
  text-decoration: none;
}
.legal-content a:hover {
  text-decoration: underline;
  color: #b91c1c;
}

/* ---- Legal lists ---- */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}
.legal-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
}

/* ---- Callout boxes ---- */
.callout-info {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}
.callout-warning {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}
.callout-important {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}
.callout-info strong,
.callout-warning strong,
.callout-important strong {
  color: #0f172a;
}

/* ---- Legal tables ---- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.legal-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}
.legal-table td {
  padding: 16px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  line-height: 1.6;
}
.legal-table tr:last-child td {
  border-bottom: none;
}

/* ---- Contact card ---- */
.legal-contact-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}
.legal-contact-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}
.legal-contact-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 4px;
}
.legal-contact-card a {
  color: #dc2626;
  font-weight: 500;
  text-decoration: none;
}
.legal-contact-card a:hover {
  text-decoration: underline;
}

/* ---- Rights cards grid (Privacy page) ---- */
.legal-rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.legal-right-card {
  padding: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.legal-right-icon {
  width: 36px;
  height: 36px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #475569;
}
.legal-right-icon svg {
  width: 18px;
  height: 18px;
}
.legal-right-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}
.legal-right-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ---- SAR iFrame ---- */
.legal-iframe-container {
  margin-top: 32px;
}
.legal-iframe-container iframe {
  width: 100%;
  min-height: 600px;
  height: 80vh;
  border: none;
  border-radius: 8px;
  display: block;
}

/* ---- Legal responsive ---- */
@media (max-width: 1200px) {
  .legal-page {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .legal-page {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 80px 18px 48px;
  }
  .legal-sidebar {
    position: static;
    margin-bottom: 32px;
  }
  .legal-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .legal-nav-title {
    display: none;
  }
  .legal-nav-link {
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f8fafc;
    border-left: none;
    white-space: nowrap;
  }
  .legal-nav-link.active {
    background: #dc2626;
    color: white;
  }
  .legal-sidebar-divider,
  .legal-help-card {
    display: none;
  }
  .legal-content h1 {
    font-size: 24px;
  }
  .legal-content h2 {
    font-size: 20px;
    margin-top: 36px;
  }
  .legal-content h3 {
    font-size: 16px;
  }
  .legal-rights-grid {
    grid-template-columns: 1fr;
  }
  .legal-table {
    font-size: 13px;
  }
  .legal-table th,
  .legal-table td {
    padding: 10px 12px;
  }
}

/* ---- Print ---- */
@media print {
  .nav,
  .site-footer,
  .legal-sidebar,
  .mobile-nav-overlay {
    display: none !important;
  }
  .legal-page {
    display: block;
    padding: 0;
    max-width: 100%;
  }
  .legal-content {
    max-width: 100%;
  }
  .legal-content,
  .legal-content p,
  .legal-content li,
  .legal-content td {
    color: black;
  }
  .legal-content h1,
  .legal-content h2,
  .legal-content h3,
  .legal-content h4,
  .legal-content strong {
    color: black;
  }
  .legal-content a {
    color: black;
    text-decoration: underline;
  }
  .callout-info,
  .callout-warning,
  .callout-important {
    border: 1px solid #ccc;
    background: #f9f9f9;
  }
}
