/* ============================================================
 * Legal / static pages — /privacy, /terms, /support
 * ============================================================
 * Three pages share this stylesheet: Политика конфиденциальности,
 * Пользовательское соглашение, Контакты поддержки. Layout is a
 * vertical stack of dota1x6-style `.aa-player__card` blocks filling
 * the standard site container — same width as every other page.
 *
 * Conventions match the dota1x6 design system (see
 * memory/design_system_dota1x6.md):
 *   - Reaver eyebrow as section header (.aa-player__card-eyebrow)
 *   - Flat #0a1823 card surface, no border, shadow-only depth
 *   - Roboto body, line-height 1.65 for legal copy
 *   - Orange accent only on links + 4×22 tick of .aa-page-hero
 * ============================================================ */

/* --- Hero subtitle: legacy `h1 + p` rules pull margins off, so we
 *     re-add a small gap. No max-width — content matches the rest of
 *     the site instead of being squeezed into a column. */
.legal-hero .aa-page-hero__subtitle {
    margin-top: 10px;
}
.legal-hero .aa-page-hero__subtitle a {
    color: var(--color-primary-500);
    text-decoration: none;
}
.legal-hero .aa-page-hero__subtitle a:hover {
    text-decoration: underline;
}

/* --- Content stack. Fills the same container as every other page —
 *     no narrower cap. Reading width is governed by the site-wide
 *     .container (max-width: var(--container-max) = 1760px). */
.legal-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 8px 0 16px;
}

/* --- Cards: ride on top of .aa-player__card chrome (flat #0a1823
 *     surface, shadow-dark-l drop). Override padding to be roomier
 *     vertically since these cards are pure long-form text, not the
 *     tighter player identity layout. */
.legal-card {
    padding: 28px 36px;
}
.legal-card p,
.legal-card ul {
    color: var(--color-text-default);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 12px 0;
}
.legal-card p:last-child,
.legal-card ul:last-child {
    margin-bottom: 0;
}
.legal-card strong {
    color: var(--color-text-strong);
    font-weight: 600;
}
.legal-card a {
    color: var(--color-primary-500);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}
.legal-card a:hover {
    color: var(--color-primary-300, #fdac4d);
    text-decoration: underline;
}
.legal-card code {
    font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
    font-size: 12.5px;
    color: var(--color-text-strong);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 2px;
}

/* --- Bulleted list — narrow dash marker instead of round bullet so
 *     it reads like patchnotes copy on /news, not OS default. */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}
.legal-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--color-text-default);
}
.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 12px;
    height: 2px;
    background: var(--color-primary-500);
    border-radius: 1px;
}
.legal-list li:last-child {
    margin-bottom: 0;
}

/* --- Concluding "CTA" card: faint orange wash on the left edge so
 *     the eye lands on it last (мы → как с нами связаться). */
.legal-card--cta {
    box-shadow: var(--shadow-dark-l), inset 3px 0 0 0 var(--color-primary-500);
}

/* ============================================================
 * /support page-specific — channel grid
 * ============================================================ */
.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 4px;
}

/* Each channel is a single row: icon · name + handle + note · ETA.
 * Hover lifts the row by replacing the dark shadow with an orange
 * left-edge stripe, matching dota1x6's hover on nav links. */
.support-tile {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: #0e222e;                 /* slightly lighter than card bg */
    color: var(--color-text-default) !important;
    text-decoration: none !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: background var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}
.support-tile:hover {
    background: #112839;
    box-shadow: inset 3px 0 0 0 var(--color-primary-500),
                inset 0 0 0 1px rgba(251, 140, 7, 0.16);
    transform: translateX(2px);
}

/* Icon plate — square 48px tile with the channel's brand-ish tint. */
.support-tile__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: var(--color-text-strong);
}
.support-tile--discord  .support-tile__icon { color: #5865f2; }
.support-tile--telegram .support-tile__icon { color: #2aabee; }
.support-tile--email    .support-tile__icon { color: var(--color-primary-500); }

.support-tile__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.support-tile__name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-strong);
}
.support-tile__handle {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-primary-500);
}
.support-tile__note {
    font-family: var(--font-sans);
    font-size: 12.5px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.support-tile__response {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-align: right;
    max-width: 180px;
    line-height: 1.5;
}

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 720px) {
    .legal-card {
        padding: 22px 20px;
    }
    .legal-wrap {
        padding-inline: 0;
    }
    .support-tile {
        grid-template-columns: 48px 1fr;
        gap: 14px;
        padding: 14px 16px;
    }
    .support-tile__icon { width: 40px; height: 40px; }
    .support-tile__icon svg { width: 24px; height: 24px; }
    .support-tile__response {
        grid-column: 1 / -1;
        text-align: left;
        max-width: none;
        padding-left: 62px;            /* line up under text column */
        margin-top: 2px;
    }
}
