/* ═══════════════════════════════════════════════════════════════
   SKONIX — Legal Pages Shared Stylesheet
   Luxury Black + Metallic Gold | Production-ready
   ═══════════════════════════════════════════════════════════════ */

/* ─── IMPORTS & RESET ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Outfit:wght@200;300;400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── DESIGN TOKENS ───────────────────────────────────────────── */
:root {
  --clr-primary:      #0B0B0B;
  --clr-secondary:    #121212;
  --clr-surface:      #181818;
  --clr-surface-hi:   #1E1E1E;
  --clr-gold:         #C9A84C;
  --clr-gold-light:   #E7D39B;
  --clr-gold-dim:     #8A6E2F;
  --clr-white:        #FFFFFF;
  --clr-muted:        rgba(255,255,255,0.65);
  --clr-faint:        rgba(255,255,255,0.10);
  --clr-border:       rgba(201,168,76,0.18);
  --clr-border-hi:    rgba(201,168,76,0.40);
  --gold-grad:        linear-gradient(135deg, #8A6E2F 0%, #C9A84C 35%, #E7D39B 55%, #C9A84C 70%, #8A6E2F 100%);
  --font-head:        'Cormorant Garamond', Georgia, serif;
  --font-body:        'Outfit', system-ui, sans-serif;
  --font-mono:        'Courier New', Courier, monospace;
  --ease-luxury:      cubic-bezier(0.25, 0.1, 0.25, 1);
  --toc-width:        280px;
  --content-max:      780px;
  --radius:           6px;
}

/* ─── BASE ────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background: var(--clr-primary);
  color: var(--clr-white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ─── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--clr-primary); }
::-webkit-scrollbar-thumb { background: var(--clr-gold-dim); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-gold); }
::selection { background: rgba(201,168,76,0.25); color: var(--clr-gold-light); }

/* ─── SITE HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,11,0.96);
  border-bottom: 1px solid var(--clr-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-header__wordmark {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-header__sep {
  color: var(--clr-border-hi);
  font-size: 0.9rem;
}

.site-header__section {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.site-header__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-header__back:hover { color: var(--clr-gold); }

.site-header__back svg {
  width: 14px; height: 14px;
  stroke: currentColor;
}

/* ─── HERO SECTION ────────────────────────────────────────────── */
.legal-hero {
  border-bottom: 1px solid var(--clr-border);
  background: linear-gradient(180deg, rgba(201,168,76,0.04) 0%, transparent 100%);
  padding: 56px 24px 44px;
}

.legal-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.legal-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.legal-hero__breadcrumb a {
  color: var(--clr-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-hero__breadcrumb a:hover { color: var(--clr-gold); }
.legal-hero__breadcrumb-sep { color: var(--clr-border-hi); }

.legal-hero__label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-gold-dim);
  margin-bottom: 12px;
}

.legal-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--clr-white);
  margin-bottom: 20px;
}

.legal-hero__title em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--clr-muted);
}

.legal-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-hero__meta-item svg {
  width: 13px; height: 13px;
  stroke: var(--clr-gold-dim);
  flex-shrink: 0;
}

.legal-hero__meta-label {
  color: var(--clr-gold-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
}

.legal-hero__divider {
  color: var(--clr-border-hi);
}

/* ─── BODY LAYOUT ─────────────────────────────────────────────── */
.legal-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: var(--toc-width) 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 1024px) {
  .legal-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 24px 80px;
  }
}

/* ─── TABLE OF CONTENTS ───────────────────────────────────────── */
.legal-toc {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 4px;
}

.legal-toc::-webkit-scrollbar { width: 2px; }
.legal-toc::-webkit-scrollbar-track { background: transparent; }
.legal-toc::-webkit-scrollbar-thumb { background: var(--clr-border); }

@media (max-width: 1024px) {
  .legal-toc {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    padding: 24px 0;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 40px;
  }
}

.toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.toc__title {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--clr-gold-dim);
}

.toc__toggle {
  display: none;
  background: none;
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.toc__toggle:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

@media (max-width: 1024px) {
  .toc__toggle { display: flex; align-items: center; gap: 6px; }
}

.toc__search {
  width: 100%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.toc__search::placeholder { color: rgba(255,255,255,0.3); }
.toc__search:focus { border-color: var(--clr-gold-dim); }

.toc__list {
  list-style: none;
}

.toc__list-inner {
  list-style: none;
}

@media (max-width: 1024px) {
  .toc__list-inner {
    display: none;
    padding-top: 4px;
  }
  .toc__list-inner.is-open { display: block; }
}

.toc__item > a {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--clr-muted);
  text-decoration: none;
  padding: 5px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  transition: all 0.2s;
  line-height: 1.4;
}

.toc__item > a:hover {
  color: var(--clr-gold-light);
  border-left-color: var(--clr-gold-dim);
  background: rgba(201,168,76,0.05);
}

.toc__item > a.is-active {
  color: var(--clr-gold);
  border-left-color: var(--clr-gold);
  background: rgba(201,168,76,0.07);
  font-weight: 500;
}

.toc__sub {
  list-style: none;
  padding-left: 12px;
}

.toc__sub a {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 3px 8px;
  border-left: 1px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
}

.toc__sub a:hover {
  color: var(--clr-muted);
  border-left-color: var(--clr-border);
}

.toc__sub a.is-active {
  color: var(--clr-gold-light);
  border-left-color: var(--clr-gold-dim);
}

.toc__actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--clr-border);
}

.toc__action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  justify-content: center;
}

.toc__action-btn svg {
  width: 12px; height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
}

.toc__action-btn:hover {
  border-color: var(--clr-gold-dim);
  color: var(--clr-gold);
}

/* ─── LEGAL CONTENT ───────────────────────────────────────────── */
.legal-content {
  min-width: 0;
  max-width: var(--content-max);
}

.legal-content p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--clr-muted);
  margin-bottom: 1.2em;
}

.legal-content strong {
  font-weight: 500;
  color: var(--clr-white);
}

.legal-content em {
  font-style: italic;
  color: var(--clr-gold-light);
}

/* ─── SECTION HEADINGS ────────────────────────────────────────── */
.legal-section {
  margin-bottom: 60px;
  scroll-margin-top: 88px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  group: true;
}

.section-heading h2 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--clr-white);
  flex: 1;
}

.section-heading h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 14px;
  scroll-margin-top: 88px;
}

.section-num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--clr-gold-dim);
  padding-top: 5px;
  flex-shrink: 0;
  min-width: 28px;
}

.heading-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: transparent;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 3px;
  text-decoration: none;
}

.section-heading:hover .heading-anchor {
  color: var(--clr-gold-dim);
  border-color: var(--clr-border);
  background: var(--clr-surface);
}

.heading-anchor svg {
  width: 13px; height: 13px;
  stroke: currentColor;
}

.heading-anchor.copied {
  color: var(--clr-gold) !important;
  border-color: var(--clr-gold-dim) !important;
  background: rgba(201,168,76,0.08) !important;
}

.section-divider {
  width: 48px;
  height: 1px;
  background: var(--gold-grad);
  margin-bottom: 20px;
  opacity: 0.6;
}

/* ─── ALERT BOXES ─────────────────────────────────────────────── */
.legal-alert {
  border-left: 3px solid var(--clr-gold-dim);
  background: rgba(201,168,76,0.05);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 24px;
}

.legal-alert--important {
  border-left-color: #E0944A;
  background: rgba(224,148,74,0.06);
}

.legal-alert--note {
  border-left-color: #5B8DEF;
  background: rgba(91,141,239,0.06);
}

.legal-alert__title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 6px;
}

.legal-alert--important .legal-alert__title { color: #E0944A; }
.legal-alert--note .legal-alert__title { color: #5B8DEF; }

.legal-alert p {
  margin-bottom: 0 !important;
  font-size: 0.84rem !important;
}

/* ─── DEFINITION LIST ─────────────────────────────────────────── */
.legal-deflist {
  margin-bottom: 24px;
}

.legal-deflist dt {
  font-weight: 500;
  color: var(--clr-gold-light);
  font-size: 0.84rem;
  margin-top: 16px;
  margin-bottom: 4px;
}

.legal-deflist dt:first-child { margin-top: 0; }

.legal-deflist dd {
  font-size: 0.84rem;
  color: var(--clr-muted);
  line-height: 1.75;
  padding-left: 16px;
  border-left: 1px solid var(--clr-border);
}

/* ─── TABLES ──────────────────────────────────────────────────── */
.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.legal-table th {
  background: var(--clr-surface);
  color: var(--clr-gold-light);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--clr-border);
}

.legal-table td {
  padding: 11px 16px;
  color: var(--clr-muted);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  vertical-align: top;
  line-height: 1.6;
}

.legal-table tr:last-child td { border-bottom: none; }

.legal-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ─── ORDERED / UNORDERED LISTS ───────────────────────────────── */
.legal-list {
  margin-bottom: 20px;
  padding-left: 0;
  list-style: none;
}

.legal-list li {
  font-size: 0.88rem;
  color: var(--clr-muted);
  line-height: 1.8;
  padding: 6px 0 6px 24px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.legal-list li:last-child { border-bottom: none; }

.legal-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.4rem;
  color: var(--clr-gold-dim);
}

.legal-list--alpha { counter-reset: alpha; }
.legal-list--alpha li { padding-left: 36px; }
.legal-list--alpha li::before {
  content: counter(alpha, lower-alpha) '.';
  counter-increment: alpha;
  font-size: 0.72rem;
  color: var(--clr-gold-dim);
  font-family: var(--font-mono);
  top: 6px;
}

.legal-list--roman { counter-reset: roman; }
.legal-list--roman li { padding-left: 36px; }
.legal-list--roman li::before {
  content: counter(roman, lower-roman) '.';
  counter-increment: roman;
  font-size: 0.72rem;
  color: var(--clr-gold-dim);
  font-family: var(--font-mono);
  top: 6px;
}

/* ─── DATA CARD (for data types, third parties, etc.) ─────────── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.data-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s;
}

.data-card:hover { border-color: var(--clr-gold-dim); }

.data-card__icon {
  width: 32px; height: 32px;
  background: rgba(201,168,76,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.data-card__icon svg {
  width: 15px; height: 15px;
  stroke: var(--clr-gold-dim);
}

.data-card__title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--clr-white);
  margin-bottom: 4px;
}

.data-card__desc {
  font-size: 0.72rem;
  color: var(--clr-muted);
  line-height: 1.5;
}

/* ─── VERSION HISTORY ─────────────────────────────────────────── */
.version-history {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--clr-border);
}

.version-history__title {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold-dim);
  margin-bottom: 16px;
}

.version-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.78rem;
  color: var(--clr-muted);
}

.version-item:last-child { border-bottom: none; }

.version-item__date {
  font-family: var(--font-mono);
  color: var(--clr-gold-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.version-item__tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.12);
  color: var(--clr-gold-dim);
  white-space: nowrap;
}

.version-item__tag--initial {
  background: rgba(91,141,239,0.12);
  color: #5B8DEF;
}

/* ─── CONTACT BLOCK ───────────────────────────────────────────── */
.contact-block {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 24px;
}

.contact-block__title {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-gold-dim);
  margin-bottom: 14px;
}

.contact-block__name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--clr-white);
  margin-bottom: 4px;
}

.contact-block__role {
  font-size: 0.78rem;
  color: var(--clr-muted);
  margin-bottom: 16px;
}

.contact-block__detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--clr-muted);
  margin-bottom: 8px;
}

.contact-block__detail svg {
  width: 14px; height: 14px;
  stroke: var(--clr-gold-dim);
  flex-shrink: 0;
}

.contact-block__detail a {
  color: var(--clr-gold-light);
  text-decoration: none;
}
.contact-block__detail a:hover { text-decoration: underline; }

/* ─── PLACEHOLDER NOTE ────────────────────────────────────────── */
.placeholder-note {
  display: inline-block;
  background: rgba(255,200,50,0.1);
  border: 1px dashed rgba(255,200,50,0.4);
  color: #FFD700;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 3px;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.legal-footer {
  background: var(--clr-secondary);
  border-top: 1px solid var(--clr-border);
  padding: 40px 24px;
}

.legal-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 640px) {
  .legal-footer__inner { grid-template-columns: 1fr; }
}

.legal-footer__brand-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.legal-footer__brand-sub {
  font-size: 0.7rem;
  color: var(--clr-muted);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.legal-footer__copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.legal-footer__links-title {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-gold-dim);
  margin-bottom: 14px;
}

.legal-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-footer__links a {
  font-size: 0.78rem;
  color: var(--clr-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.legal-footer__links a::before {
  content: '◆';
  font-size: 0.35rem;
  color: var(--clr-gold-dim);
}

.legal-footer__links a:hover { color: var(--clr-gold-light); }

/* ─── SEARCH HIGHLIGHT ────────────────────────────────────────── */
.search-highlight {
  background: rgba(201,168,76,0.25);
  color: var(--clr-gold-light);
  border-radius: 2px;
  padding: 0 2px;
}

/* ─── BACK TO TOP ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s var(--ease-luxury);
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--clr-gold-dim);
  background: rgba(201,168,76,0.08);
}

.back-to-top svg {
  width: 16px; height: 16px;
  stroke: var(--clr-gold-dim);
}

/* ─── SKIP LINK ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
  background: var(--clr-gold);
  color: var(--clr-primary);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .legal-hero { padding: 36px 20px 28px; }
  .legal-body { padding: 0 20px 60px; }
  .legal-content { max-width: 100%; }
  .data-grid { grid-template-columns: 1fr; }
}

/* ─── PRINT STYLES ────────────────────────────────────────────── */
@media print {
  .site-header,
  .legal-toc,
  .back-to-top,
  .toc__actions,
  .site-header__back {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .legal-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .legal-hero {
    border-bottom: 1px solid #ccc;
    padding: 20px;
  }

  .legal-hero__title { color: #000; }
  .legal-content p { color: #333; }
  .legal-section h2 { color: #000; }

  .legal-table th { background: #f0f0f0 !important; color: #000 !important; }
  .legal-table td { color: #333 !important; }

  a { color: #000; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 0.7rem; }

  .legal-footer { border-top: 1px solid #ccc; }
  .legal-footer__brand-name { color: #000 !important; -webkit-text-fill-color: #000 !important; }

  @page {
    margin: 2cm;
    @bottom-right { content: 'Page ' counter(page) ' of ' counter(pages); }
  }
}
