/* ══════════════════════════════════════════════════════════════════════
   PIXEL ACADEMY — Legal / Info Pages Shared Styles
   Extends academy.css — imports its :root vars, fonts, nav, body, footer
   Used by: terms.html, privacy.html, refund.html, shipping.html,
            contact.html, about.html, pricing.html,
            thank-you.html, payment-failed.html
   ══════════════════════════════════════════════════════════════════════ */

/* ── Page wrapper ────────────────────────────────── */
.page-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 120px 32px 80px;
}
.page-wrap.wide {
    max-width: 1180px;
}

/* ── Page header ─────────────────────────────────── */
.page-header {
    text-align: center;
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.page-header .eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.page-header h1 {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 14px;
}
.page-header h1 span {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-header .subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.page-header .last-updated {
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* ── Legal content ───────────────────────────────── */
.legal-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
}
.legal-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 48px 0 16px;
    letter-spacing: -0.4px;
}
.legal-body h2:first-child {
    margin-top: 0;
}
.legal-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 28px 0 10px;
}
.legal-body p {
    margin-bottom: 14px;
}
.legal-body ul,
.legal-body ol {
    margin: 10px 0 16px 22px;
}
.legal-body li {
    margin-bottom: 8px;
}
.legal-body a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    text-underline-offset: 3px;
}
.legal-body a:hover {
    text-decoration-color: var(--accent-blue);
}
.legal-body strong {
    color: var(--text-white);
    font-weight: 700;
}
.legal-body .callout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin: 24px 0;
    font-size: 0.92rem;
}
.legal-body .callout.warn {
    border-left-color: var(--accent-orange);
}
.legal-body .callout.danger {
    border-left-color: #ef4444;
}
.legal-body .callout.success {
    border-left-color: var(--accent-green);
}
.legal-body .placeholder {
    display: inline-block;
    padding: 1px 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px dashed var(--accent-orange);
    border-radius: 4px;
    color: var(--accent-orange);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'SF Mono', Menlo, monospace;
}

/* ── TOC (table of contents for legal pages) ────── */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 48px;
}
.toc-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.toc ol {
    margin: 0;
    padding-left: 22px;
    columns: 2;
    column-gap: 32px;
}
.toc li {
    margin-bottom: 8px;
    break-inside: avoid;
}
.toc a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.toc a:hover {
    color: var(--text-white);
}

/* ── Contact / About / Pricing grids ─────────────── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}
.info-card:hover {
    border-color: #333;
    transform: translateY(-2px);
}
.info-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.3rem;
}
.info-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}
.info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.info-card .value {
    display: block;
    margin-top: 10px;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-word;
}
.info-card a.value {
    color: var(--accent-blue);
}

/* ── Contact form ────────────────────────────────── */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 40px 0;
}
.contact-form h2 {
    margin-top: 0;
}
.form-row {
    margin-bottom: 18px;
}
.form-row label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--accent-blue);
}
.form-row textarea {
    resize: vertical;
    min-height: 120px;
}
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--text-white);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.14);
}
.btn-ghost {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}
.btn-ghost:hover {
    border-color: var(--text-white);
}

/* ── Pricing table ───────────────────────────────── */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 32px 0;
    font-size: 0.92rem;
}
.pricing-table thead {
    background: rgba(255, 255, 255, 0.03);
}
.pricing-table th,
.pricing-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.pricing-table th {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    text-transform: uppercase;
}
.pricing-table td {
    color: var(--text-secondary);
}
.pricing-table td strong {
    color: var(--text-white);
}
.pricing-table tr:last-child td {
    border-bottom: none;
}
.pricing-table .price-cell {
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
}
.pricing-table .dept-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.dept-chip.design {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
.dept-chip.marketing {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}
.dept-chip.backend {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}
.dept-chip.ai {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

/* ── Payment result pages ────────────────────────── */
.result-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}
.result-card {
    max-width: 540px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    text-align: center;
}
.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 900;
}
.result-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}
.result-icon.fail {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.result-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.result-card .order-meta {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 20px 0;
}
.result-card .cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* ── Full footer (replaces mini footer) ──────────── */
.site-footer {
    margin-top: 80px;
    padding: 56px 40px 32px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}
.site-footer .brand-block .logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.site-footer .brand-block .logo-row img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.site-footer .brand-block .logo-row .name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.site-footer .brand-block .logo-row .name span {
    color: var(--text-tertiary);
    font-weight: 400;
}
.site-footer .brand-block p {
    font-size: 0.86rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    max-width: 320px;
}
.site-footer .col-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer li {
    margin-bottom: 10px;
}
.site-footer a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: var(--text-white);
}
.site-footer-bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
}
.site-footer-bottom .legal-mini a {
    color: var(--text-tertiary);
    margin-left: 18px;
}
.site-footer-bottom .legal-mini a:hover {
    color: var(--text-white);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 860px) {
    .page-wrap {
        padding: 100px 20px 60px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .toc ol {
        columns: 1;
    }
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .site-footer .brand-block {
        grid-column: 1 / -1;
    }
}
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.7rem;
    }
    .legal-body h2 {
        font-size: 1.15rem;
    }
    .site-footer-inner {
        grid-template-columns: 1fr;
    }
    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-footer-bottom .legal-mini a {
        margin-left: 0;
        margin-right: 14px;
    }
}
