/* ==========================================================================
   Topaz Art Academy — legal.css
   Shared styles for the legal pages (terms, privacy, refund, accessibility).
   Reuses the design tokens defined in base.css.
   ========================================================================== */

/* ---------- Legal hero — dark band, centered title ---------- */
.legal-hero {
  background: var(--bg-philosophy);
  color: var(--cream);
  padding: clamp(84px, 13vh, 160px) 0 clamp(76px, 11vh, 140px);
  text-align: center;
}

.legal-hero .eyebrow { color: var(--cream-soft); }

.legal-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(46px, 6.8vw, 96px);
  line-height: 1.08;
  margin: 26px auto 0;
  max-width: 18ch;
  padding: 0 var(--pad-x);
}

.legal-hero .legal-lead {
  max-width: 640px;
  margin: 30px auto 0;
  padding: 0 var(--pad-x);
  font-size: 16px;
  line-height: 1.85;
  color: var(--cream-soft);
}

.legal-hero .effective {
  margin-top: 36px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

/* ---------- French summary block (Quebec) ---------- */
.fr-summary {
  background: var(--bg-philosophy);
  color: var(--cream-soft);
  padding: 30px clamp(24px, 4vw, 40px) 34px;
  margin-bottom: clamp(56px, 8vh, 100px);
  font-size: 15px;
  line-height: 1.9;
}

.fr-summary h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 14px;
}

.fr-summary a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Body column ---------- */
.legal-body {
  background: var(--bg-light);
  padding: clamp(76px, 11vh, 140px) 0 clamp(96px, 13vh, 160px);
}

.legal-col {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Table of contents ---------- */
.legal-toc {
  border: 1px solid var(--rule-dark);
  background: var(--bg-lighter);
  padding: 32px 36px 36px;
  margin-bottom: clamp(56px, 8vh, 100px);
}

.legal-toc h2 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}

.legal-toc ol {
  counter-reset: toc;
  list-style: none; /* the ::before counter is the numbering */
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
}

.legal-toc li { counter-increment: toc; }

.legal-toc a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(33, 30, 26, 0.07);
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero) "  "; /* 01…14, not 010 */
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--copper);
  margin-right: 8px;
}

.legal-toc a:hover { color: var(--ink); padding-left: 5px; }

/* ---------- Sections ---------- */
.legal-section { margin-bottom: clamp(58px, 8vh, 96px); }
.legal-section:last-child { margin-bottom: 0; }

.legal-section h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--ink);
}

.legal-section h2 .sec-no {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}

.legal-section h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 34px 0 12px;
  color: var(--ink);
}

.legal-section p {
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

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

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

.legal-section ul, .legal-section ol { margin: 4px 0 20px; }

.legal-section li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 1.5px;
  background: var(--copper);
}

.legal-section ol { counter-reset: leg; }
.legal-section ol li { counter-increment: leg; }
.legal-section ol li::before {
  content: counter(leg) ".";
  position: absolute;
  left: 0;
  font-size: 12px;
  color: var(--copper);
  top: 0.35em;
}

.legal-section a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(33, 30, 26, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.legal-section a:hover {
  color: var(--copper);
  text-decoration-color: var(--copper);
}

/* ---------- Callout ---------- */
.legal-callout {
  border-left: 2px solid var(--copper);
  background: rgba(184, 122, 96, 0.08);
  padding: 24px 28px;
  margin: 28px 0;
}

.legal-callout p { margin-bottom: 10px; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout .co-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}

/* ---------- Tables ---------- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
}

.legal-table th {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--rule-dark);
}

.legal-table td {
  padding: 16px 16px 18px 0;
  border-bottom: 1px solid rgba(33, 30, 26, 0.08);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  vertical-align: top;
}

.legal-table td:first-child {
  width: 34%;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Contact strip ---------- */
.legal-contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border: 1px solid var(--rule-dark);
  background: var(--bg-lighter);
  padding: 30px 34px;
  margin-top: 36px;
}

.legal-contact-strip .cs-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.legal-contact-strip .cs-value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

.legal-contact-strip a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer policies column (legal pages) ---------- */
.footer-visit p {
  display: block;
  font-size: 13.5px;
  line-height: 2.1;
  color: rgba(244, 240, 234, 0.72);
}

.footer-visit a {
  color: rgba(244, 240, 234, 0.72);
  transition: color 0.3s var(--ease-out);
}
.footer-visit a:hover { color: var(--cream); }

/* ---------- Accessibility: stronger contrast on dark bands (legal pages) ----------
   The template's --cream-soft (62%) is 5.85:1 on the philosophy green — it passes
   AA but is tight. Legal copy and the Accessibility Statement get ~80% cream
   (~8.7:1) for comfortable, defensible contrast. Scoped here so the mdglowskin
   homepage sections keep their original look. */
.legal-hero .eyebrow,
.legal-hero .legal-lead,
.legal-hero .effective { color: rgba(244, 240, 234, 0.82); }
.fr-summary { color: rgba(244, 240, 234, 0.8); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-contact-strip { grid-template-columns: 1fr; gap: 28px; }
  .legal-table td:first-child { width: 40%; }
}
