/* ===== Amino House — Content & legal pages =====
   FAQ, Shipping & Returns, Quality & Testing, Legal. Matches polish.css system. */

/* ---- FAQ page ---- */
.faq-page-grid { display: flex; flex-direction: column; gap: 56px; }
.faq-group-title { font-size: 26px; font-weight: 500; letter-spacing: -0.018em; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

/* ---- Policy shared (Shipping) ---- */
.policy-wrap { max-width: 820px; }
.policy-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; }
.policy-card { background: var(--off); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.policy-card-k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.policy-card-v { font-family: inherit; font-style: normal; font-size: 28px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.policy-card-d { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

.policy-body h2 { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.policy-body h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 26px 0 8px; }
.policy-body p { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 12px; }
.policy-body ul { margin: 8px 0 12px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.policy-body ul li { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); padding-left: 26px; position: relative; }
.policy-body ul li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 100px; background: var(--accent); }
.policy-body p a, .legal-body a, .legal-contact a { color: var(--accent); font-weight: 600; }
.policy-body p a:hover, .legal-body a:hover { text-decoration: underline; }

/* Shared CTA block */
.policy-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-top: 56px; padding: 32px 36px; background: var(--accent-soft); border-radius: 14px; }
.policy-cta h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.012em; margin-bottom: 6px; }
.policy-cta p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---- Quality page ---- */
.quality-specs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.quality-spec { padding: 26px 24px; border-right: 1px solid var(--border); }
.quality-spec:last-child { border-right: 0; }
.quality-spec-k { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.quality-spec-v { font-family: inherit; font-style: normal; font-size: 26px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.quality-spec-d { font-size: 12px; color: var(--muted); margin-top: 8px; }

.quality-steps { display: flex; flex-direction: column; gap: 0; }
.quality-step { display: flex; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.quality-step:last-child { border-bottom: 0; }
.quality-step-n { font-family: inherit; font-style: normal; font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; flex-shrink: 0; width: 64px; }
.quality-step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.012em; margin-bottom: 6px; }
.quality-step p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 64ch; }

/* ---- Storage page (template-storage.php) ----
 * Two cards because the guidance has two halves and the split IS the message: a sealed vial and a
 * reconstituted one want different things. Same tokens as the quality specs above; no new colour. */
.storage-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.storage-card { padding: 26px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--accent-soft); }
.storage-card--recon { background: transparent; }
.storage-card h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.012em; margin-bottom: 8px; }
.storage-card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 60ch; }

.storage-supplies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.storage-supply { padding: 22px 20px; border: 1px solid var(--border); border-radius: 12px; }
.storage-supply h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.storage-supply p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .storage-cards, .storage-supplies { grid-template-columns: 1fr; }
}

/* ---- Legal pages ---- */
.legal-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; max-width: 1040px; }
.legal-body { max-width: 680px; }
.legal-section { margin-bottom: 32px; }
.legal-section h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.014em; margin-bottom: 10px; }
.legal-section p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.legal-section p + p { margin-top: 14px; }
.legal-list { margin: 12px 0 0; padding-left: 20px; list-style: disc; }
.legal-list li { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 4px; }
.legal-list + p { margin-top: 14px; }
.legal-contact { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.legal-contact p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.legal-side { position: sticky; top: 100px; }
.legal-side-card { background: var(--off); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.legal-side-k { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.legal-side-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.legal-side-card a { font-size: 14px; font-weight: 500; color: var(--ink); }
.legal-side-card a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .policy-cards, .quality-specs { grid-template-columns: 1fr 1fr; }
  .quality-spec { border-right: 0; border-bottom: 1px solid var(--border); }
  .quality-spec:nth-child(odd) { border-right: 1px solid var(--border); }
  .legal-wrap { grid-template-columns: 1fr; gap: 40px; }
  .legal-side { position: static; }
}
@media (max-width: 560px) {
  .policy-cards, .quality-specs { grid-template-columns: 1fr; }
  .quality-spec { border-right: 0 !important; }
  .quality-step { gap: 16px; }
  .quality-step-n { width: 44px; font-size: 30px; }
  .policy-cta { padding: 24px; }
}
/* Legal long-form at phone width: desktop sizes made these pages a wall of
   oversized text. Compact scale — ~3-4 paragraphs readable per screen.
   NOTE: polish.css sets a blanket `h2 { font-size: clamp(28px,8vw,40px)
   !important }` at ≤640, so these MUST carry !important to win. */
@media (max-width: 640px) {
  .legal-section { margin-bottom: 26px; }
  .legal-section h2 { font-size: 13px !important; line-height: 1.3 !important; margin-bottom: 8px !important; letter-spacing: -0.005em !important; }
  .legal-section p { font-size: 12.5px !important; line-height: 1.55 !important; }
  .legal-section p + p { margin-top: 12px; }
  .legal-list { margin-top: 10px; padding-left: 16px; }
  .legal-list li { font-size: 12.5px !important; line-height: 1.55 !important; margin-bottom: 4px; }
  .legal-list + p { margin-top: 12px; }
  .legal-contact { margin-top: 20px; padding-top: 14px; }
  .legal-contact p { font-size: 12px !important; }
}

/* FINE PRINT — a [[FINE]]-marked paragraph in the legal content store.
 *
 * Size and colour are Leonardo's explicit instruction (31 Aug 2026), given after being shown that
 * #ffffff on this page's white background renders the text invisible to a sighted reader. Recorded
 * here so the values read as a decision rather than a mistake somebody later "fixes".
 *
 * !important because the ≤640 block above sets `.legal-section p { font-size: 12.5px !important }`,
 * which would otherwise win on mobile and make the text visible there but not on desktop — the one
 * outcome nobody asked for. */
.legal-body .legal-fineprint {
  font-size: 6px !important;
  line-height: 1.4 !important;
  color: #ffffff !important;
  /* LAYOUT-NEUTRAL, and it has to be exactly neutral rather than merely small.
   *
   * This paragraph is not in the design preview, so every pixel it occupies is drift against the
   * source of truth. In flow it inherited `.legal-section p + p { margin-top: 12px }` and its own
   * line box — about 20px — which pushed every section below it down the page and took legal-terms
   * from 4.37% to 10.05% at 390px, past the 6% threshold, for text nobody can see. Dropping the
   * margin alone still left ~8px, which is enough to misalign 12.5px body text all the way down.
   *
   * Zero height keeps the rendered page pixel-identical to the approved design while the sentence
   * stays in the document. Neither the 6px nor the #ffffff that were asked for is changed. */
  margin: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
