/* AGNTO — shared styles for utility pages (support, refunds, terms, privacy).
   One file so these can never drift from each other again.
   Tokens: agnto-color-palette v1.0.  Type: matches the v3 homepage. */

:root {
  /* Brand */
  --cyan: #00E4FF;
  --cyan-soft: rgba(0, 228, 255, 0.12);
  --green: #24F095;
  --orange: #FF6B35;

  /* Surfaces — the site canvas is --deep; cards sit above it */
  --deep: #0A0A0B;
  --surface: #16161B;
  --surface-2: #232327;

  /* Text */
  --white: #F5F5F1;
  --gray: #85848E;
  --muted: #5B5B65;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-bright: rgba(255, 255, 255, 0.12);

  /* Type — same stack as the homepage */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Back-compat aliases so existing markup keeps working */
  --bg: var(--deep);
  --text: var(--white);
  --text-muted: var(--gray);
  --text-dim: var(--muted);
  --accent: var(--cyan);
  --money: var(--green);
  --cta: var(--orange);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--deep);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(0, 228, 255, 0.25); }

.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0; position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 30px; width: auto; display: block; }
@media (max-width: 600px) { .logo img { height: 26px; } }
.header-link { font-family: var(--mono); font-size: 12.5px; color: var(--gray); text-decoration: none; transition: color .2s; }
.header-link:hover { color: var(--cyan); }

/* ---------- page hero ---------- */
.page-hero { padding: 84px 0 44px; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero .label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.22em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 18px;
}
.page-hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 5vw, 54px); line-height: 1.06;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.page-hero .meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ---------- content ---------- */
.content { padding: 56px 0 80px; }
.content h2 {
  font-family: var(--display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.02em; margin: 48px 0 16px; padding-top: 16px; color: var(--white);
}
.content h2:first-child { margin-top: 0; padding-top: 0; }
.content h2 .num {
  color: var(--cyan); font-family: var(--mono); font-weight: 500;
  font-size: 17px; margin-right: 12px; vertical-align: 2px;
}
.content h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 32px 0 12px; color: var(--white); }
.content p { color: var(--gray); margin-bottom: 16px; text-wrap: pretty; }
.content p strong, .content li strong { color: var(--white); font-weight: 600; }
.content ul, .content ol { margin: 12px 0 20px; padding-left: 24px; color: var(--gray); }
.content li { margin-bottom: 8px; }
.content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: var(--white); }
code {
  font-family: var(--mono); font-size: 13.5px; background: var(--surface-2);
  border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; color: var(--white);
}

/* ---------- callouts ---------- */
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--cyan); border-radius: 10px;
  padding: 20px 24px; margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--orange); }
.callout.consent { border-left-color: var(--green); background: linear-gradient(90deg, rgba(36, 240, 149, 0.05), transparent); }
.callout .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 8px; display: block;
}
.callout.warn .label { color: var(--orange); }
.callout.consent .label { color: var(--green); }

/* ---------- table of contents ---------- */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px 28px; margin: 32px 0 48px; }
.toc-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--gray); text-transform: uppercase; margin-bottom: 16px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.toc li:last-child { border-bottom: none; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); color: var(--muted); font-size: 12px; margin-right: 12px; }
.toc a { color: var(--white); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--cyan); }

/* ---------- Q&A (support) ---------- */
.qa { border-top: 1px solid var(--border); }
.qa details { border-bottom: 1px solid var(--border); }
.qa summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--mono); color: var(--cyan); font-size: 20px; line-height: 1; flex: 0 0 auto; }
.qa details[open] summary::after { content: "–"; }
.qa summary:hover { color: var(--cyan); }
.qa .answer { padding: 0 0 20px; color: var(--gray); }
.qa .answer p { margin-bottom: 12px; }
.qa .answer p:last-child { margin-bottom: 0; }
.qa .answer a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact block ---------- */
.contact-block { background: var(--surface); border: 1px solid var(--border-bright); border-radius: 14px; padding: 32px; margin: 48px 0 0; text-align: center; }
.contact-block h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.contact-block p { color: var(--gray); margin-bottom: 18px; }
.contact-block a, .contact-block a.btn {
  font-family: var(--mono); font-size: 14.5px; color: var(--cyan); text-decoration: none;
  padding: 11px 20px; border: 1px solid var(--border-bright); border-radius: 8px;
  display: inline-block; transition: border-color .2s, box-shadow .2s;
}
.contact-block a:hover, .contact-block a.btn:hover {
  border-color: rgba(0, 228, 255, 0.5); box-shadow: 0 0 20px rgba(0, 228, 255, 0.12);
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 60px; }
.footer-logo { display: inline-block; margin-bottom: 20px; text-decoration: none; }
.footer-logo img { height: 26px; width: auto; display: block; opacity: 0.6; transition: opacity .2s; }
.footer-logo:hover img { opacity: 1; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--gray); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-disclaimer { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.55; max-width: 800px; }
