/* Shared typography & page structure for Privacy policy, Terms, FAQs, Investors & 404. */
:root {
  --ink: #192322;
  --ink-hover: #263533;
  --muted: #525e59;
  --soft: #f4f6f4;
  --tint: #eef2ef;
  --line: #dce2de;
  --border-strong: #76847e;
  --page: #ffffff;
  --measure: 74rem;
  --gutter: clamp(1.25rem, 4.8vw, 4.5rem);
  --font: 'Figtree';
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.03rem/1.65 var(--font), system-ui, -apple-system, sans-serif;
}

@media (max-width: 640px) {
  body { font-size: 1rem; line-height: 1.6; }
}

b, strong { font-weight: 600; }
a { color: inherit; text-underline-offset: .2em; }
button, summary { cursor: pointer; font: inherit; }

.legal-wrap {
  width: min(47.5rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

main.legal-wrap {
  padding-block: clamp(6.25rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 5.5rem);
}

.legal-eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .65rem;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.028em;
  font-weight: 500;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.legal-updated {
  color: var(--muted);
  font-size: .94rem;
  margin: 0 0 2.25rem;
}

.legal-summary {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.25rem;
}

.legal-summary p { margin: 0; }
.legal-summary ul { margin: .6rem 0 0; padding-left: 1.2em; }

.legal-toc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  margin: 0 0 2.5rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 2rem;
}

.legal-toc li {
  break-inside: avoid;
  font-size: .95rem;
}

h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -.018em;
  margin: 2.75rem 0 .75rem;
  scroll-margin-top: 5.5rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
}

p, li { max-width: 66ch; }
ul { padding-left: 1.2em; }
li + li { margin-top: .35rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin: .75rem 0;
}

th, td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: .65rem .75rem .65rem 0;
}

th { font-weight: 600; }
.legal-table { overflow-x: auto; max-width: 100%; }
code { font-family: inherit; font-weight: 600; }

/* Dedicated /faqs/ page layout */
.faqs-wrap {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding-block: clamp(6.25rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 5.5rem);
}

.faqs-intro {
  max-width: 46rem;
  margin-bottom: 2.25rem;
}

.faqs-lead {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: #36443f;
  max-width: 54ch;
}

.faqs-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.35rem;
}

.faqs-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}

.faqs-jumps a:hover {
  border-color: var(--border-strong);
  background: #e9eeeb;
}

.faqs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.faqs-section {
  scroll-margin-top: 5.5rem;
}

.faqs-section > h2 {
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--muted);
}

.faqs-list details {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
}

.faqs-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faqs-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  min-height: 3.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.faqs-list summary::-webkit-details-marker { display: none; }

.faq-toggle {
  flex: none;
  width: .8rem;
  height: .8rem;
  position: relative;
  margin-right: .2rem;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}

.faq-toggle::after {
  transform: rotate(90deg);
  transition: transform .18s ease;
}

details[open] .faq-toggle::after {
  transform: rotate(0);
}

.faqs-list .answer p {
  margin: 0;
  padding: 0 1.35rem 1.05rem 0;
  max-width: 56ch;
  font-size: .98rem;
  line-height: 1.6;
  color: #36443f;
}

.faqs-cta-card {
  margin-top: 3.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.faqs-cta-card h2 {
  margin: 0 0 .35rem;
  font-size: 1.35rem;
  font-weight: 500;
}

.faqs-cta-card p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

.faqs-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  transition: background-color .15s ease;
}

.faqs-cta-btn:hover {
  background: var(--ink-hover);
}

@media (max-width: 820px) {
  .faqs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}
