/* Shared style for fame-dz.com subpages (support, terms, privacy).
   Matches the light landing: Mona Sans headings, Inter text, one pink accent. */

@font-face {
  font-family: 'Mona Sans';
  src: url(/fonts/MonaSans-latin.woff2) format('woff2');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfafb;
  --surface: #ffffff;
  --surface-2: #f5f3f5;
  --line: rgba(20, 10, 16, 0.08);
  --text: #120a0f;
  --text-2: #5b5660;
  --text-3: #8b8590;
  --pink: #ff0068;        /* dot, focus ring, decorative only */
  --pink-ink: #d1005a;    /* pink used as text on light (5.4:1) */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --display: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }

a { color: var(--pink-ink); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--text); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top-inner {
  max-width: 1120px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-logo img { display: block; height: 28px; width: auto; }
.top-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.top-back svg { width: 16px; height: 16px; }

/* ---------- Page head ---------- */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page-head { max-width: 680px; margin-bottom: 48px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 16px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--pink);
  flex: 0 0 auto;
}
h1 {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.lede { font-size: 18px; color: var(--text-2); }
.updated { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- Legal layout ---------- */
.legal {
  display: grid;
  grid-template-columns: 240px minmax(0, 680px);
  gap: 64px;
  align-items: start;
}

.toc { position: sticky; top: 32px; }
.toc summary {
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 12px;
  pointer-events: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: baseline;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.toc a span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.on { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.toc a.on span { color: var(--pink-ink); }

.doc > p.intro { font-size: 18px; color: var(--text-2); margin-bottom: 48px; }

.doc section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.doc section:first-of-type { padding-top: 0; border-top: 0; }

.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.doc h2 .n {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--pink-ink);
  font-variant-numeric: tabular-nums;
  min-width: 20px;
}
.doc h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { margin: 12px 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.doc li::marker { color: var(--text-3); }
.doc ul ul { margin-top: 8px; }
.doc :is(ul, ol, table) + p { margin-top: 16px; }
.doc .label { margin-top: 16px; color: var(--text); font-weight: 500; }

.note {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.note .dot { margin-top: 9px; }
.note p { color: var(--text); }

table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 15px;
}
th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  padding: 0 16px 8px 0;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
}
td:first-child { color: var(--text); font-weight: 500; width: 40%; }
.packs td:first-child { width: auto; white-space: nowrap; }
.packs td:nth-child(2) { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 880px) {
  .packs, .packs tbody, .packs tr, .packs td { display: block; width: auto; }
  .packs thead { display: none; }
  .packs tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .packs td { padding: 0; border: 0; white-space: normal; }
  .packs td:nth-child(2) { margin: 2px 0 4px; }
}

.contact-list { list-style: none !important; margin-left: 0 !important; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-3);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot a[aria-current] { color: var(--text); }

/* ---------- Support ---------- */
.support {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
}
.contact a {
  display: grid;
  grid-template-columns: 40px 1fr 16px;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  color: var(--text);
  transition: background-color 0.15s var(--ease);
}
.contact a + a { box-shadow: 0 -1px 0 var(--line); }
.contact a:hover { background: var(--surface-2); color: var(--text); }
.contact .ic {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--text);
}
.contact svg { width: 18px; height: 18px; }
.contact .go { color: var(--text-3); width: 16px; height: 16px; }
.contact small { display: block; font-size: 13px; color: var(--text-3); }
.contact b { font-weight: 500; font-size: 16px; }
.contact-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 8px;
  font-size: 14px;
  color: var(--text-2);
}

.faq h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.faq dl > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq dl > div:last-child { border-bottom: 0; }
.faq dt { font-weight: 600; margin-bottom: 4px; }
.faq dd { color: var(--text-2); }

/* ---------- Small screens ---------- */
@media (max-width: 880px) {
  .page { padding: 40px 16px 64px; }
  .top-inner, .foot-inner { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 34px; }
  .legal, .support { grid-template-columns: 1fr; gap: 40px; }
  .toc {
    position: static;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
  }
  .toc summary {
    pointer-events: auto;
    cursor: pointer;
    margin: 0;
    padding: 4px 8px;
    color: var(--text);
    display: flex;
    justify-content: space-between;
  }
  .toc summary::after { content: '+'; color: var(--text-3); }
  .toc[open] summary::after { content: '−'; }
  .toc[open] summary { margin-bottom: 8px; }
  .doc section { padding: 32px 0; }
  td:first-child { width: 44%; }
}
