/* MEMZO about, policy and contact pages — layered on register.css (tokens, dark mode, page gutter).
   Look follows the home page: grey rounded hero card, dark footer card, #F0460E accent. */

.legal-page, .contact-page { --lg-accent: #F0460E; }

/* ---------- header nav ---------- */
.lg-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.lg-nav a { font-size: 15px; font-weight: 500; color: var(--reg-ink); text-decoration: none; opacity: .75; transition: opacity .2s; }
.lg-nav a:hover, .lg-nav a[aria-current=page] { opacity: 1; }
.lg-nav a[aria-current=page] { text-decoration: underline; text-decoration-color: var(--lg-accent); text-underline-offset: 6px; }
.lg-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 50px; background: var(--reg-ink); color: var(--reg-bg) !important;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .25s, background-color .25s;
}
.lg-cta:hover { transform: translateY(-1px); background: var(--lg-accent); color: #fff !important; }

/* ---------- hero card ---------- */
.lg-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(4px, 1vw, 12px);
  padding: clamp(40px, 6.5vw, 104px) clamp(24px, 5vw, 88px);
  border-radius: clamp(28px, 3vw, 42px);
  background: var(--reg-panel);
}
.lg-hero::before {
  content: ""; position: absolute; z-index: -1; width: 55%; aspect-ratio: 1; right: -14%; top: -55%;
  background: radial-gradient(closest-side, rgba(240, 70, 14, .16), rgba(240, 70, 14, 0));
}
.lg-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(var(--reg-line) 1px, transparent 1px), linear-gradient(90deg, var(--reg-line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .55;
  -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(120% 90% at 100% 0%, #000, transparent 70%);
}
.lg-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(44px, 7vw, 112px);
  font-weight: 500; letter-spacing: -0.05em; line-height: .98;
  margin: 0 0 clamp(18px, 2vw, 26px); color: var(--reg-ink);
}
.lg-hero .lg-lede { margin: 0; max-width: 720px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: var(--reg-muted); }
.lg-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
.lg-meta span, .lg-meta a {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px;
  border-radius: 50px; border: 1px solid var(--reg-line); background: var(--reg-bg);
  font-size: 14px; color: var(--reg-muted); text-decoration: none;
}
.lg-meta b { color: var(--reg-ink); font-weight: 600; }
.lg-meta a { color: var(--reg-ink); font-weight: 500; transition: border-color .2s; }
.lg-meta a:hover { border-color: var(--lg-accent); }

/* ---------- layout ---------- */
.lg-body { padding: clamp(24px, 3vw, 40px) 0 clamp(64px, 8vw, 120px); }
.lg-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); align-items: start; }

/* table of contents card */
.lg-toc {
  position: sticky; top: 24px;
  padding: 26px 24px; border-radius: 24px;
  background: var(--reg-panel);
}
.lg-toc__label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--reg-muted); }
.lg-toc__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lg-accent); box-shadow: 0 0 0 4px rgba(240, 70, 14, .18); }
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a {
  display: flex; gap: 10px; padding: 8px 12px; margin: 0 -12px; border-radius: 10px;
  font-size: 14px; line-height: 1.35; color: var(--reg-muted); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.lg-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-variant-numeric: tabular-nums; opacity: .55; }
.lg-toc a:hover { color: var(--reg-ink); }
.lg-toc a.is-active { color: var(--reg-ink); background: var(--reg-bg); font-weight: 500; }
.lg-toc a.is-active::before { color: var(--lg-accent); opacity: 1; }

/* article card */
.lg-content {
  min-width: 0;
  padding: clamp(28px, 4.5vw, 72px);
  border-radius: 32px; border: 1px solid var(--reg-line); background: var(--reg-bg);
}
.lg-content section { max-width: 780px; scroll-margin-top: 24px; }
.lg-content section + section { margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--reg-line); }
.lg-content h2 {
  display: flex; gap: 14px; align-items: center;
  font-family: "DM Sans", sans-serif; font-size: clamp(24px, 2.2vw, 32px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 20px; color: var(--reg-ink);
}
.lg-content h2 .lg-num {
  flex: none; display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px;
  border-radius: 50px; background: var(--reg-panel);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--reg-muted);
}
.lg-content h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin: 26px 0 10px; color: var(--reg-ink); }
.lg-content p, .lg-content li { font-size: 16.5px; line-height: 1.75; color: var(--reg-muted); }
.lg-content p { margin: 0 0 14px; }
.lg-content section > p:last-child, .lg-content section > ul:last-child { margin-bottom: 0; }
.lg-content strong { color: var(--reg-ink); font-weight: 600; }
.lg-content ul { margin: 0 0 16px; padding: 0; list-style: none; }
.lg-content ul li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.lg-content ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--lg-accent); }
.lg-content a { color: var(--reg-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lg-accent); }
.lg-content a:hover { color: var(--lg-accent); }

/* callouts */
.lg-note { margin: 0 0 18px; padding: 20px 24px; border-radius: 18px; background: var(--reg-panel); }
.lg-note p { margin: 0 !important; }
.lg-note--warn { background: rgba(240, 70, 14, .08); box-shadow: inset 3px 0 0 var(--lg-accent); }
.lg-note--warn p { color: var(--reg-ink) !important; }

/* details the owner still has to fill in */
.lg-fill { padding: 1px 6px; border-radius: 6px; background: rgba(240, 70, 14, .12); color: var(--lg-accent) !important; font-weight: 600; white-space: nowrap; }

/* tables */
.lg-table-wrap { overflow-x: auto; margin: 4px 0 18px; border-radius: 18px; border: 1px solid var(--reg-line); }
.lg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lg-table th, .lg-table td { padding: 14px 18px; text-align: left; vertical-align: top; color: var(--reg-muted); line-height: 1.5; }
.lg-table tr + tr td, .lg-table tbody tr:first-child td { border-top: 1px solid var(--reg-line); }
.lg-table th { color: var(--reg-ink); font-weight: 600; background: var(--reg-panel); }
.lg-table td:first-child { color: var(--reg-ink); font-weight: 500; min-width: 180px; }

/* ---------- about page blocks ---------- */
.ab-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 6px 0 20px; }
.ab-step { padding: 24px; border-radius: 20px; background: var(--reg-panel); transition: transform .3s; }
.ab-step:hover { transform: translateY(-3px); }
.ab-step__n { display: block; margin-bottom: 16px; font-size: 12px; letter-spacing: .06em; color: var(--lg-accent); }
.ab-step h3 { margin: 0 0 8px; }
.lg-content .ab-step p { margin: 0; font-size: 15px; line-height: 1.55; }

.ab-stats {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 6px 0 20px; border-radius: 28px; background: #0f0f0f; color: #fff;
}
.ab-stats::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -20%; top: -70%; background: radial-gradient(closest-side, rgba(240, 70, 14, .3), rgba(240, 70, 14, 0)); }
.ab-stat { padding: 30px 28px; }
.ab-stat + .ab-stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.ab-stat b { display: block; font-size: clamp(40px, 4vw, 60px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.ab-stat b i { font-style: normal; color: var(--lg-accent); }
.lg-content .ab-stat span { display: block; margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .6); }

.ab-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 8px; padding: 28px 30px; border-radius: 24px; background: var(--reg-panel);
}
.lg-content .ab-cta p { margin: 0; font-size: 22px; font-weight: 500; color: var(--reg-ink); letter-spacing: -0.02em; }
.ab-cta a { text-decoration: none !important; }

/* ---------- dark footer card (same family as the home footer) ---------- */
.lg-footer { padding: 0 0 clamp(16px, 2vw, 24px); }
.lg-footer__card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: clamp(28px, 3vw, 42px); background: #0f0f0f; color: #fff;
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4.5vw, 72px) clamp(24px, 3vw, 36px);
}
[data-bs-theme=dark] .lg-footer__card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.lg-footer__card::before { content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; left: -18%; bottom: -70%; background: radial-gradient(closest-side, rgba(240, 70, 14, .28), rgba(240, 70, 14, 0)); }
.lg-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: clamp(28px, 3.5vw, 48px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.lg-footer__card .lg-footer__kicker { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.lg-footer__mail { font-size: clamp(28px, 4vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #fff !important; text-decoration: none; }
.lg-footer__mail:hover { color: var(--lg-accent) !important; }
.lg-footer__btn { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 50px; background: var(--lg-accent); color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .25s; }
.lg-footer__btn:hover { transform: translateY(-2px); }

.lg-footer__cols { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: clamp(28px, 3.5vw, 44px) 0; }
.lg-footer__card .lg-footer__title { margin: 0 0 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.lg-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lg-footer__list--2 { grid-template-columns: repeat(2, max-content); column-gap: clamp(28px, 4vw, 64px); }
.lg-footer__list a { font-size: 15px; color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.lg-footer__list a:hover, .lg-footer__list a[aria-current=page] { color: #fff; }
.lg-footer__list a[aria-current=page] { text-decoration: underline; text-decoration-color: var(--lg-accent); text-underline-offset: 4px; }

.lg-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.lg-footer__bottom img { width: 118px; height: auto; display: block; }
.lg-footer__card .lg-footer__copy { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .5); }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .lg-grid { grid-template-columns: 1fr; }
  .lg-toc { position: static; }
  .lg-toc ol { columns: 2; column-gap: 24px; }
  .lg-toc a { break-inside: avoid; }
  .lg-content { border-radius: 26px; }
  .lg-footer__cols { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .lg-toc { padding: 22px 20px; border-radius: 22px; }
  .lg-toc ol { columns: 1; }
  .lg-content { padding: 26px 20px; border-radius: 22px; }
  .lg-content h2 { font-size: 23px; }
  .lg-content p, .lg-content li { font-size: 16px; }
  .ab-steps { grid-template-columns: 1fr; }
  .ab-stats { grid-template-columns: 1fr; }
  .ab-stat + .ab-stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .lg-footer__list--2 { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .lg-footer__list a { white-space: normal; }
  .lg-footer__btn { width: 100%; justify-content: center; }
}

/* footer: social icons + disclaimer */
.lg-footer__social { display: flex; gap: 10px; }
.lg-footer__social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none;
  transition: background-color .25s, border-color .25s;
}
.lg-footer__social a:hover { background: var(--lg-accent); border-color: var(--lg-accent); }
.lg-footer__card .lg-footer__disclaimer {
  margin: 20px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  max-width: 1100px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .5);
}
.lg-footer__disclaimer strong { color: rgba(255, 255, 255, .8); font-weight: 600; }
.lg-footer__disclaimer a { color: rgba(255, 255, 255, .8) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lg-accent); }
.lg-footer__disclaimer a:hover { color: #fff !important; }
