/**
 * About / Privacy / Terms — aligns with index.html layout (header, footer, container).
 * Load after assets/css/base.css.
 */

:root {
    --container-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.page-about {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background: #ffffff;
    color: var(--text-deep);
}

.page-about a {
    color: inherit;
    text-decoration: none;
}

/* —— Header (matches index .site-header) —— */

.page-about .site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.page-about .header-inner {
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    z-index: 10;
}

.page-about .brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-about .brand-logo {
    width: 48px;
    height: 48px;

    background: linear-gradient(
        135deg,
        var(--brand-color),
        var(--brand-color-deep)
    );

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);

    color: white;

    font-size: 32px;
    font-weight: 700;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1;

    transform: translateY(-1px);
}

.page-about .brand-name {
    opacity: 0.9;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-about .site-header .container {
    position: relative;
}

.page-about .container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* —— Main —— */

.page-about .about-main {
    flex: 1 1 auto;

    padding: 48px 0 72px;
}

.page-about .about-prose {
    max-width: 800px;
    margin: 0 auto;
}

.page-about .about-prose--legal {
    max-width: 720px;

    padding: 48px 52px 52px;

    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 24px;
}

.page-about .about-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 28px;

    color: var(--brand-color);
    font-size: 15px;
    font-weight: 650;

    transition: opacity 0.2s;
}

.page-about .about-back:hover {
    opacity: 0.82;
}

.page-about .about-h1 {
    font-size: 38px;
    font-weight: 750;
    letter-spacing: -1px;
    line-height: 1.15;

    margin: 0 0 20px;
}

.page-about .about-lead {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-soft);

    margin: 0 0 24px;
}

.page-about .about-prose--legal .about-h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.page-about .about-meta {
    font-size: 15px;
    color: var(--text-soft);

    margin: 0 0 32px;
}

.page-about .about-h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;

    margin: 36px 0 14px;
    color: var(--text-deep);
}

.page-about .about-h2:first-of-type {
    margin-top: 0;
}

.page-about .about-prose--legal .about-h2 {
    font-size: 20px;
    margin-top: 32px;

    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.page-about .about-prose p,
.page-about .about-prose li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-soft);

    margin: 0 0 16px;
}

.page-about .about-prose ul {
    margin: 0 0 20px;
    padding-left: 1.25em;
}

.page-about .about-prose li {
    margin-bottom: 8px;
}

.page-about .about-card {
    margin-top: 40px;
    padding: 40px;

    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 24px;
}

.page-about .about-card .about-h2 {
    margin-top: 0;
}

.page-about .about-card p:last-child {
    margin-bottom: 0;
}

.page-about .about-block {
    margin-top: 48px;
}

.page-about .about-block .about-h2 {
    margin-top: 0;
}

.page-about .about-callout {
    margin-top: 40px;
    padding: 20px 22px;

    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;

    color: #9a3412;
    font-size: 14px;
    line-height: 1.65;
}

.page-about .about-callout strong {
    font-weight: 700;
}

/* —— Footer (matches index .site-footer) —— */

.page-about .site-footer {
    margin-top: auto;

    background: #f8fafc;

    border-top: 1px solid #e5e7eb;
}

.page-about .footer-main {
    padding: 54px 0 34px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.page-about .footer-brand {
    max-width: 420px;
}

.page-about .footer-brand-top {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 18px;
}

.page-about .footer-logo {
    width: 48px;
    height: 48px;

    background: linear-gradient(
        135deg,
        var(--brand-color),
        var(--brand-color-deep)
    );

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);

    color: white;

    font-size: 32px;
    font-weight: 700;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1;

    transform: translateY(-1px);
}

.page-about .footer-brand-name {
    opacity: 0.9;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-about .footer-desc {
    color: var(--text-soft);

    line-height: 1.9;
    font-size: 15px;

    margin: 0;
}

.page-about .footer-links {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 18px 56px;
}

.page-about .footer-grid a {
    color: #475569;

    font-size: 15px;
    font-weight: 550;

    transition: color 0.2s;
}

.page-about .footer-grid a:hover {
    color: var(--brand-color);
}

.page-about .footer-bottom {
    border-top: 1px solid #e5e7eb;

    padding: 24px 0 40px;

    display: flex;
    justify-content: space-between;
    gap: 30px;

    color: #64748b;

    font-size: 14px;
    line-height: 1.8;
}

.page-about .footer-note {
    text-align: right;
}

@media (max-width: 900px) {
    .page-about .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .page-about .footer-links {
        width: 100%;
        justify-content: flex-start;
    }

    .page-about .footer-bottom {
        flex-direction: column;
    }

    .page-about .footer-note {
        text-align: left;
    }

    .page-about .about-prose--legal {
        padding: 32px 22px 36px;
    }

    .page-about .about-h1 {
        font-size: 30px;
    }
}
