/* ===== SHARED LEGAL PAGES STYLESHEET ===== */
/* Used by: privacy-policy.html, terms.html, refund-policy.html */

.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
  background: var(--dark);
}

.legal-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.legal-header {
  margin-bottom: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.legal-header .company-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.legal-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.legal-header .meta {
  font-size: 14px;
  color: var(--text-faint);
}

/* ── Content sections ── */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}

.legal-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-section li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
}

.legal-section li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

.legal-section strong {
  color: var(--text);
  font-weight: 600;
}

.legal-section a {
  color: var(--primary-light);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* ── Highlight box (refund summary) ── */
.highlight-box {
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 4px 0 8px;
}

.highlight-box p {
  color: var(--text);
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ── Table (refund policy) ── */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 14px;
}

.legal-table th {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
}

.legal-table td {
  color: var(--text-muted);
  padding: 13px 16px;
  border: 1px solid var(--border);
  line-height: 1.6;
}

.legal-table tr:hover td {
  background: rgba(108, 99, 255, 0.03);
}

/* ── Mini navbar for legal pages ── */
.legal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.legal-nav .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Footer ── */
.legal-footer {
  background: var(--dark-3);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 80px;
  text-align: center;
}

.legal-footer p {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 10px;
}

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

.legal-footer a {
  color: var(--text-faint);
  text-decoration: none;
  transition: var(--transition);
  margin: 0 8px;
}

.legal-footer a:hover {
  color: var(--primary-light);
}

.legal-footer .sep {
  color: var(--border);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .legal-header h1 { font-size: 28px; }
  .legal-section h2 { font-size: 16px; }
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 10px 12px; }
}
