/* ═══════════════════════════════════════════════════════════════════════
   CONTENT PAGES — page-scoped rules only, for two families of screens:

   1. /info/*  — merchant-governed content pages (about/contact/faq/
      shipping/returns/privacy/terms/warranty/stores/help). Every one of
      these renders through the single Pages/Info/_InfoTemplate.cshtml
      partial, driven by InfoPageModel — see that file for why the body
      text is a structural placeholder, never invented policy (Q42/Q46).

   2. /error/* — system-state pages (403/404/500/maintenance/offline),
      rendered through Pages/Error/_ErrorTemplate.cshtml, driven by
      ErrorPageModel.

   Loaded LAST on each page that needs it (see each page's Styles
   section), after layout.css — every rule below composes tokens.css/
   theme.css/components.css (.card/.btn/.alert/.empty-state/.breadcrumb),
   never redeclares a colour, radius, spacing or shadow (Q9/Q24). All
   spacing/inset properties are logical (inline/block) for RTL-first
   layout (Q24).
   ═══════════════════════════════════════════════════════════════════════ */

/* ── /info/* — shared header ─────────────────────────────────────────── */

.info-page { padding-block-end: var(--space-20); }

.info-header {
    padding-block: var(--space-6) var(--space-8);
    border-block-end: 1px solid var(--line);
    margin-block-end: var(--space-8);
}
.info-header__eyebrow {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--brand);
    margin-block-end: var(--space-2);
}
.info-header__title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--ink);
    margin: 0;
}

.info-page__notice { margin-block-end: var(--space-8); }

/* ── /info/* — table of contents (pages with 3+ sections) ───────────── */

.info-toc {
    background: var(--paper-muted);
    border: 1px solid var(--line);
    border-radius: var(--card-radius, var(--radius-md));
    padding: var(--space-5) var(--space-6);
    margin-block-end: var(--space-8);
    max-width: 420px;
}
.info-toc__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--ink-soft);
    margin-block-end: var(--space-3);
}
.info-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    counter-reset: toc;
}
.info-toc li { counter-increment: toc; }
.info-toc li::before {
    content: counter(toc) ".";
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    margin-inline-end: var(--space-2);
}
.info-toc a { color: var(--ink); text-decoration: none; font-size: var(--text-base); }
.info-toc a:hover { color: var(--brand); text-decoration: underline; }

/* ── /info/* — section stubs ─────────────────────────────────────────── */

.info-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}
.info-section { scroll-margin-block-start: var(--space-8); }
.info-section__title {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--ink);
    margin: 0 0 var(--space-2);
    padding-block-start: var(--space-2);
    border-block-start: 1px solid var(--line);
}
.info-section__stub {
    color: var(--ink-faint);
    font-style: italic;
    margin: 0;
}

.info-updated {
    margin-block-start: var(--space-10);
    padding-block-start: var(--space-4);
    border-block-start: 1px solid var(--line);
    font-size: var(--text-sm);
    color: var(--ink-faint);
}

/* ── /info/help — hub grid (the one page with real links) ───────────── */

.info-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
}
.info-hub-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-decoration: none;
    transition: box-shadow var(--duration-fast) var(--ease-standard),
                border-color var(--duration-fast) var(--ease-standard);
}
.info-hub-card:hover { box-shadow: var(--card-shadow-hover, var(--shadow-card)); border-color: var(--brand); }
.info-hub-card__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--ink); }
.info-hub-card__desc { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }

/* ── /error/* — centered status card ─────────────────────────────────── */

.error-page {
    padding-block: var(--space-16) var(--space-20);
    display: flex;
    justify-content: center;
}
.error-card {
    width: 100%;
    max-width: 480px;
    padding: var(--space-10) var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-card);
}
.error-card__code {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    font-variant-numeric: tabular-nums;
    color: var(--brand);
    line-height: 1;
}
.error-card__title { font-size: var(--text-2xl); font-weight: var(--weight-bold); color: var(--ink); margin: 0; }
.error-card__message { font-size: var(--text-base); color: var(--ink-soft); margin: 0 0 var(--space-2); }
.error-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-block-start: var(--space-2);
}
