/* ===========================
   CLICKIA — LEGAL / TEXT PAGES
   Extends style.css
   =========================== */

/* Page hero banner */
.legal-hero {
  background: var(--bg-dark);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(65,59,97,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(25,48,92,0.5) 0%, transparent 60%);
  pointer-events: none;
}
.legal-hero .container { position: relative; z-index: 1; }

.legal-hero .section-label {
  justify-content: center;
  margin-bottom: 16px;
}
.legal-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.legal-hero .legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Content area */
.legal-content {
  background: var(--bg-light);
  padding: 80px 0 120px;
}
.legal-content .container {
  max-width: 820px;
}

/* Sections */
.legal-section {
  margin-bottom: 56px;
}
.legal-section:last-child {
  margin-bottom: 0;
}
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(3,18,47,0.08);
  letter-spacing: -0.01em;
}
.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-dark);
  margin: 32px 0 16px;
}
.legal-section p {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 16px;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Lists */
.legal-section ul,
.legal-section ol {
  margin: 16px 0 24px 24px;
  color: var(--text-muted-dark);
  font-size: 1.05rem;
  line-height: 1.85;
}
.legal-section li {
  margin-bottom: 10px;
  padding-left: 8px;
}
.legal-section li::marker {
  color: var(--c-orchid);
}

/* Highlight box */
.legal-highlight {
  background: var(--bg-white);
  border-left: 3px solid var(--c-orchid);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 32px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.legal-highlight p {
  color: var(--text-dark);
  margin-bottom: 0;
  font-size: 1rem;
}

/* Contact card */
.legal-contact {
  background: var(--bg-white);
  border: 1px solid rgba(3,18,47,0.06);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-top: 48px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.legal-contact h3 {
  margin-top: 0;
  font-size: 1.5rem;
}
.legal-contact p {
  margin-bottom: 8px;
}
.legal-contact a {
  color: var(--c-orchid);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.legal-contact a:hover {
  color: var(--c-peach);
}

/* Table of contents */
.legal-toc {
  background: var(--bg-white);
  border: 1px solid rgba(3,18,47,0.06);
  border-radius: var(--radius-md);
  padding: 32px 40px;
  margin-bottom: 56px;
  box-shadow: var(--shadow-sm);
}
.legal-toc h3 {
  font-size: 1.1rem;
  margin: 0 0 20px;
  color: var(--c-orchid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 500;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
}
.legal-toc li {
  padding: 6px 0;
  margin-bottom: 0;
}
.legal-toc a {
  color: var(--text-muted-dark);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}
.legal-toc a:hover {
  color: var(--c-orchid);
}

/* Back to home link */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-orchid);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  margin-bottom: 0;
}
.legal-back:hover {
  color: var(--c-peach);
  transform: translateX(-4px);
}
.legal-back svg {
  transition: var(--transition);
}
.legal-back:hover svg {
  transform: translateX(-4px);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-hero { padding: 120px 0 60px; }
  .legal-content { padding: 48px 0 80px; }
  .legal-section h2 { font-size: 1.5rem; }
  .legal-toc { padding: 24px; }
  .legal-highlight { padding: 20px 24px; }
  .legal-contact { padding: 28px 24px; }
}
