/* ===========================================================================
   terms.css  --  Terms & Conditions for terms-&-condition.php. Namespaced
   `.tc-`. Same tokens as gallery-cinematic.css / faq.css (Meridian): ivory
   page, Sora display, DM Sans body, champagne gold, charcoal pills.
   =========================================================================== */

/* Hero title: "Terms & Conditions" is far longer than the other pages'
   one-word titles, so it gets its own size to stay on one line. */
.gal-terms-page .gal-brand-text {
  font-size: clamp(30px, 8.6vw, 124px);
  letter-spacing: -2px;
}
@media (max-width: 767px) {
  .gal-terms-page .gal-brand-text { letter-spacing: -1px; }
}

.tc {
  --ivory:        #fcfbfa;
  --sand:         #e9e0d2;
  --gold:         #ca9e4e;
  --gold-rgb:     202, 158, 78;
  --charcoal:     #111315;
  --charcoal-rgb: 17, 19, 21;
  --ink-2:        #4e565c;
  --hair:         #e6ded0;
  --display-f: "Sora", "Jost", sans-serif;
  --body-f:    "DM Sans", "Inter", sans-serif;
  --gutter:  clamp(20px, 4.5vw, 72px);
  --measure: 1440px;
  --r-box:  20px;
  --r-pill: 999px;
  --e-out:  cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  background: var(--ivory);
  border-top: 1px solid var(--hair);
  font-family: var(--body-f);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  padding: clamp(64px, 8vw, 120px) 0 clamp(80px, 9vw, 140px);
}
.tc :where(*, *::before, *::after) { box-sizing: border-box; }
.tc :where(h2, h3, p, ol, ul) { margin: 0; }
.tc a { color: inherit; text-decoration: none; }

.tc-wrap {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

/* ── LEFT: sticky intro + contents ─────────────────────────────────────── */
.tc-aside {
  position: sticky;
  top: 120px;
}
.tc-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.tc-dash { width: 34px; height: 1px; background: var(--gold); }
.tc-title {
  font-family: var(--display-f);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--charcoal);
}
.tc-title span { display: block; color: var(--gold); }
.tc-lede {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 34em;
}

.tc-toc {
  margin-top: 32px;
  padding: 10px;
  border: 1px solid var(--hair);
  border-radius: var(--r-box);
  background: #fff;
}
.tc-toc ol { list-style: none; padding: 0; }
.tc-toc a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 14px;
  color: var(--charcoal);
  font-size: .95rem;
  font-weight: 600;
  transition: background .25s ease, color .25s ease;
}
.tc-toc a span {
  font-family: var(--display-f);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .06em;
  min-width: 2ch;
}
.tc-toc a:hover { background: rgba(var(--gold-rgb), .1); }
.tc-toc a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── RIGHT: numbered clauses ───────────────────────────────────────────── */
.tc-intro {
  padding: 26px 28px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-box) var(--r-box) 0;
  background: rgba(var(--gold-rgb), .08);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
}
.tc-intro strong { color: var(--charcoal); overflow-wrap: anywhere; }

.tc-clause {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  margin-top: 14px;
  padding: 28px;
  border-radius: var(--r-box);
  background: #fff;
  border: 1px solid var(--hair);
  scroll-margin-top: 110px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.tc-intro + .tc-clause { margin-top: 28px; }
.tc-clause:hover { border-color: rgba(var(--gold-rgb), .55); }
.tc-clause:target {
  border-color: rgba(var(--gold-rgb), .7);
  box-shadow: 0 18px 40px -22px rgba(var(--charcoal-rgb), .25);
}
.tc-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), .12);
  color: var(--gold);
  font-size: .95rem;
}
.tc-num {
  display: block;
  font-family: var(--display-f);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .08em;
}
.tc-clause h2 {
  margin-top: 4px;
  font-family: var(--display-f);
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--charcoal);
}
.tc-clause ul {
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.tc-clause li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
}
.tc-clause li + li { margin-top: 6px; }
.tc-clause li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.tc-clause li a { color: var(--charcoal); font-weight: 600; border-bottom: 1px solid rgba(var(--gold-rgb), .6); }
.tc-clause li a:hover { color: var(--gold); }

.tc-note {
  margin-top: 28px;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.7;
}

.tc-help {
  margin-top: 28px;
  padding: 30px;
  border-radius: var(--r-box);
  background: var(--charcoal);
  color: #fff;
  box-shadow: 0 24px 48px -20px rgba(var(--charcoal-rgb), .45);
}
.tc .tc-help h3 {
  color: #fff;
  font-family: var(--display-f);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}
.tc-help p { margin-top: 8px; color: rgba(255,255,255,.7); font-size: .95rem; line-height: 1.6; }
.tc-help-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .92rem;
  transition: transform .3s var(--e-out), background .25s ease, color .25s ease;
}
.tc-btn:hover { transform: translateY(-2px); }
.tc .tc-btn--gold { background: var(--gold); color: var(--charcoal); }
.tc .tc-btn--ghost { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.tc .tc-btn--ghost:hover { background: #fff; color: var(--charcoal); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .tc-wrap { grid-template-columns: 1fr; gap: 36px; }
  .tc-aside { position: static; }
  .tc-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-clause { scroll-margin-top: 90px; }
}
@media (max-width: 575px) {
  .tc-toc ol { grid-template-columns: 1fr; }
  .tc-clause { grid-template-columns: 1fr; gap: 14px; padding: 22px 18px; }
  .tc-icon { width: 40px; height: 40px; font-size: .85rem; }
  .tc-intro { padding: 20px 18px; }
  .tc-help { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-clause, .tc-toc a, .tc-btn { transition: none; }
}
