/* ==========================================================================
   DREMORA IT — LEGAL PAGE CHROME
   Shared styling for privacy-policy, terms-of-service, refund-policy, course-guidelines
   ========================================================================== */

.legal-hero {
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.legal-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-subtle), transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.legal-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.legal-section {
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  border-left: 3px solid var(--accent-bright);
  transition: border-color var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out);
}

.legal-section:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 20px var(--accent-subtle);
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-section h2 svg {
  color: var(--accent-bright);
  font-size: 1rem;
  width: 18px;
  height: 18px;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.legal-section ul {
  list-style: none;
  padding: 0;
}

.legal-section ul li {
  padding-left: 1.5rem;
  position: relative;
}

.legal-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 700;
}

.legal-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--accent-bright);
  margin-bottom: 1.5rem;
}

.legal-contact-box {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--accent-subtle), transparent);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  text-align: center;
}

/* Refund policy table + note */
.refund-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.refund-table th,
.refund-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.refund-table th {
  color: var(--text-primary);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}

.refund-table td {
  color: var(--text-secondary);
}

.refund-table tr:last-child td {
  border-bottom: none;
}

.refund-table .yes {
  color: var(--success);
  font-weight: 600;
}

.refund-table .partial {
  color: var(--warning);
  font-weight: 600;
}

.refund-table .no {
  color: var(--danger);
  font-weight: 600;
}

.important-note {
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--warning-subtle);
  border: 1px solid rgba(217, 119, 6, 0.25);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 1rem;
}

.important-note svg {
  color: var(--warning);
  margin-top: 2px;
  flex-shrink: 0;
}

.important-note p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Course guidelines highlight box */
.highlight-box {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  margin-bottom: 1rem;
}

.highlight-box strong {
  color: var(--accent-bright);
}
