/* ==========================================================================
   legal.css — Privacy Policy / Terms of Service / Cookie Policy
   Loads on top of style.css and reuses its tokens, navbar and footer.
   ========================================================================== */

/* ---------- readable ground over the procedural background ----------
   The landing page breaks its background up with heroes, art and cards. These
   pages are long stretches of body copy, and the gold linework reads straight
   through it — so the canvas drops a layer and a scrim sits between it and the
   text. The pattern still shows, quietly. */
#bg-canvas { z-index: -2; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% 0%, rgba(212, 168, 83, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(20, 17, 16, 0.84) 0%, rgba(16, 13, 11, 0.93) 55%, rgba(16, 13, 11, 0.96) 100%);
}

/* ---------- page header ---------- */
.legal-hero {
  position: relative;
  padding: calc(var(--nav-h) + 5.5rem) 0 3.5rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.legal-hero::after {
  content: "";
  position: absolute;
  top: calc(var(--nav-h) + 1rem);
  right: 6%;
  width: 190px;
  height: 110px;
  background: var(--gold-grad);
  opacity: 0.07;
  clip-path: polygon(0 0, 100% 0, 58% 100%);
  pointer-events: none;
}
@media (max-width: 860px) {
  .legal-hero::after { display: none; }
}

.legal-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.legal-hero__kicker i { font-size: 0.62rem; }

.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.legal-hero__lead {
  max-width: 62ch;
  color: var(--ink-dim);
  font-weight: 300;
  font-size: 1.02rem;
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.legal-hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.legal-hero__meta i { color: var(--gold); font-size: 0.75rem; }

/* ---------- layout: sticky table of contents + prose ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 4rem;
  padding: 3.5rem 0 6rem;
  align-items: start;
}
@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}
@media (max-width: 980px) {
  .legal-toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 0;
  }
}
.legal-toc h2 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
@media (max-width: 980px) {
  .legal-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.1rem 1.5rem; }
  .legal-toc { max-height: none; }
}
.legal-toc a {
  counter-increment: toc;
  display: block;
  padding: 0.32rem 0;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ink-faint);
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin-right: 0.6rem;
}
.legal-toc a:hover { color: var(--ink); transform: translateX(3px); }
.legal-toc a.is-active { color: var(--gold); }
.legal-toc a.is-active::before { color: var(--gold); }

/* ---------- prose ---------- */
.legal-prose { max-width: 78ch; }

.legal-prose section { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.legal-prose section + section { margin-top: 3.25rem; }

.legal-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.legal-prose h2 .num {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  flex: none;
}

.legal-prose h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.9rem 0 0.7rem;
}

.legal-prose p,
.legal-prose li {
  font-weight: 300;
  color: var(--ink-dim);
  font-size: 0.96rem;
}
.legal-prose p + p { margin-top: 0.95rem; }
.legal-prose strong { color: var(--ink); font-weight: 600; }
.legal-prose em { color: var(--ink); font-style: italic; }

.legal-prose a:not(.btn) {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.25s;
}
.legal-prose a:not(.btn):hover { color: var(--gold-bright); }

.legal-prose ul,
.legal-prose ol {
  margin: 0.95rem 0 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.legal-prose ul li {
  position: relative;
  padding-left: 1.5rem;
}
.legal-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--gold-grad);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.85;
}
.legal-prose ol {
  list-style: none;
  counter-reset: item;
}
.legal-prose ol li {
  counter-increment: item;
  position: relative;
  padding-left: 2rem;
}
.legal-prose ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--gold);
}

/* ---------- callout ---------- */
.legal-note {
  margin-top: 1.4rem;
  padding: 1.15rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  backdrop-filter: blur(6px);
}
.legal-note p { margin: 0; font-size: 0.9rem; }
.legal-note p + p { margin-top: 0.7rem; }
.legal-note__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* ---------- data / cookie table ---------- */
.legal-table-wrap {
  margin-top: 1.4rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(6px);
}
.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}
.legal-table thead th {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.05);
  white-space: nowrap;
}
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table td { color: var(--ink-dim); font-weight: 300; }
.legal-table td code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace;
  font-size: 0.82rem;
  color: var(--ink);
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.16);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  white-space: nowrap;
}

.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 83, 0.35);
  color: var(--gold);
  white-space: nowrap;
}
.pill--off {
  border-color: rgba(179, 168, 147, 0.3);
  color: var(--ink-faint);
}

/* ---------- contact / action block ---------- */
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.legal-contact-card {
  margin-top: 1.5rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(6px);
}
.legal-contact-card h3 { margin-top: 0; }
.legal-contact-card p { margin-bottom: 0; }

/* ---------- cross-links between the three documents ---------- */
.legal-related {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 5rem;
}
.legal-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.legal-related__card {
  display: block;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.legal-related__card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 168, 83, 0.5);
}
.legal-related__card i {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  display: block;
}
.legal-related__card h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.legal-related__card p {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--ink-dim);
}
.legal-related__card[aria-current="page"] {
  border-color: rgba(212, 168, 83, 0.5);
  box-shadow: inset 0 0 0 1px rgba(212, 168, 83, 0.12);
}

/* The footer legal row (.footer__legal) is styled in style.css, because every
   page of the site carries it — not just these three. */

@media (prefers-reduced-motion: reduce) {
  .legal-toc a,
  .legal-related__card { transition: none; }
  .legal-toc a:hover,
  .legal-related__card:hover { transform: none; }
}
