/* ═══════════════════════════════════════════════════════
   SANTICLINIC — LEGAL PAGES
   Used by: privacy.html, terms.html, cookies.html
   ═══════════════════════════════════════════════════════ */

/* ── IMPORTS TOKENS FROM style.css ──────────────────── */
/* Assumes :root variables are already defined globally  */

/* ── LEGAL PAGE LAYOUT ───────────────────────────────── */
.legal-page {
  min-height: 100svh;
  background: var(--cream);
  padding-top: 80px;
}

.legal-hero {
  background: linear-gradient(145deg, #1d2f23 0%, #2d5a3d 100%);
  padding: 80px 48px 64px;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,90,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.legal-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}
.legal-hero__back:hover { color: var(--gold-light); }
.legal-hero__back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.legal-hero__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 20px;
}

.legal-hero__meta {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.45);
  letter-spacing: 0.05em;
}

/* ── LEGAL CONTENT ───────────────────────────────────── */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 48px 120px;
}

.legal-content__intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(45,90,61,0.1);
}

/* ── SECTION BLOCKS ──────────────────────────────────── */
.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(45,90,61,0.07);
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-section__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.legal-section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 20px;
  line-height: 1.2;
}

.legal-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 16px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
  margin: 16px 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-section ul li,
.legal-section ol li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--mid);
}
.legal-section ul { list-style: none; }
.legal-section ul li::before {
  content: '—';
  color: var(--gold);
  margin-right: 10px;
  font-family: var(--font-display);
}

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

.legal-section a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.legal-section a:hover { color: var(--green-mid); }

/* ── HIGHLIGHT BOX ───────────────────────────────────── */
.legal-highlight {
  background: #f0ebe0;
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.legal-highlight p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--mid);
  margin: 0;
}
.legal-highlight strong { color: var(--green); }

/* ── CONTACT BOX ─────────────────────────────────────── */
.legal-contact {
  background: linear-gradient(135deg, #1d2f23, #2d5a3d);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin-top: 56px;
  text-align: center;
}
.legal-contact p {
  font-size: 0.95rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.7;
  margin-bottom: 8px;
}
.legal-contact p:last-child { margin-bottom: 0; }
.legal-contact a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.legal-contact a:hover { color: #fff; }
.legal-contact__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 12px;
}

/* ── COOKIE TABLE ────────────────────────────────────── */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.88rem;
}
.cookie-table th {
  background: var(--green);
  color: rgba(245,240,232,0.9);
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  padding: 14px 16px;
  text-align: left;
}
.cookie-table th:first-child { border-radius: var(--radius) 0 0 0; }
.cookie-table th:last-child  { border-radius: 0 var(--radius) 0 0; }
.cookie-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(45,90,61,0.08);
  color: var(--mid);
  vertical-align: top;
  line-height: 1.6;
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table tr:nth-child(even) td { background: rgba(245,240,232,0.5); }

/* ── COOKIE BANNER ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner__text {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.6;
  flex: 1;
  min-width: 260px;
}
.cookie-banner__text a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.cookie-banner__text a:hover { color: #fff; }
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.cookie-btn--accept {
  background: var(--green);
  color: #fff;
}
.cookie-btn--accept:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}
.cookie-btn--reject {
  background: transparent;
  color: rgba(245,240,232,0.5);
  border: 1px solid rgba(255,255,255,0.12);
}
.cookie-btn--reject:hover {
  color: rgba(245,240,232,0.9);
  border-color: rgba(255,255,255,0.3);
}

/* ── LEGAL NAV ───────────────────────────────────────── */
.legal-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 48px;
  background: rgba(26, 44, 33, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.legal-nav__logo {
  display: flex;
  align-items: center;
}
.legal-nav__logo-img {
  height: 56px;
  width: auto;
  display: block;
}
.legal-nav__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legal-nav__link:hover { color: var(--gold-light); }
.legal-nav__link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── LEGAL FOOTER ────────────────────────────────────── */
.legal-footer {
  background: var(--dark);
  padding: 40px 48px;
  text-align: center;
}
.legal-footer p {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.25);
  line-height: 1.6;
}
.legal-footer a {
  color: rgba(245,240,232,0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal-footer a:hover { color: var(--gold-light); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .legal-hero  { padding: 60px 24px 48px; }
  .legal-content { padding: 48px 24px 80px; }
  .legal-nav   { padding: 12px 24px; }
  .legal-footer { padding: 32px 24px; }
  .legal-contact { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
  .cookie-table { font-size: 0.78rem; }
  .cookie-table th,
  .cookie-table td { padding: 10px 12px; }
}