/* ---- Subpage body line-height ---- */
body {
    line-height: 1.47;
}

/* ---- Page Layout ---- */
.page {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--space-4xl) 22px var(--space-2xl);
}

/* ---- Subpage Hero ---- */
.hero {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.hero h1 {
    font-size: var(--font-title-2);
    font-weight: 700;
    letter-spacing: var(--tracking-title);
    line-height: 1.08;
    margin-bottom: var(--space-sm);
}

.hero .subtitle {
    font-size: var(--font-body-lg);
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 480px;
    margin: 0 auto;
}

/* ---- Subpage hero entrance (plays on page load) ---- */
@keyframes subpage-hero-enter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero > * {
        animation: subpage-hero-enter 900ms var(--ease-out) both;
    }

    .hero > *:nth-child(1) { animation-delay: 0ms; }
    .hero > *:nth-child(2) { animation-delay: 120ms; }
    .hero > *:nth-child(3) { animation-delay: 240ms; }
}

/* ---- Privacy "at a glance" badge grid ---- */
.glance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.glance-item {
    background: var(--bg-secondary);
    border: 0.5px solid var(--card-border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.glance-item .glance-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0 auto var(--space-sm);
    border-radius: var(--radius);
    color: var(--accent);
    background: rgba(0, 113, 227, 0.12);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.glance-item .glance-icon svg {
    width: 22px;
    height: 22px;
}

.glance-item .glance-title {
    font-size: var(--font-callout);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.glance-item p {
    font-size: var(--font-caption);
    color: var(--text-secondary);
    line-height: 1.4;
}

.glance-caption {
    text-align: center;
    font-size: var(--font-footnote);
    color: var(--text-tertiary);
    margin-bottom: var(--space-3xl);
}

/* ---- Content sections (typography-first, whitespace-separated) ---- */
.content-card {
    margin-bottom: var(--space-2xl);
}

.content-card h2 {
    font-size: var(--font-title-3);
    font-weight: 600;
    letter-spacing: var(--tracking-title);
    margin-bottom: var(--space-sm);
}

.content-card p {
    font-size: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

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

.content-card .lede {
    font-size: var(--font-body-lg);
    color: var(--text-secondary);
    line-height: 1.55;
}

.content-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-card li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
}

.content-card li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

.content-card a {
    color: var(--accent);
    text-decoration: none;
    transition: color 200ms var(--ease-inout);
}

.content-card a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Links Section ---- */
.links-section {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.link-card {
    flex: 1;
    display: block;
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 0.5px solid var(--card-border-color);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}

@media (hover: hover) {
    .link-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-card-hover);
    }
}

.link-card .link-label {
    font-size: var(--font-footnote);
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.link-card .link-title {
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--accent);
}

/* ---- Last-updated line ---- */
.footer {
    padding-top: var(--space-lg);
    border-top: 0.5px solid var(--hairline);
    color: var(--text-tertiary);
    font-size: var(--font-footnote);
}

/* ---- Responsive ---- */
@media (max-width: 734px) {
    .page {
        padding: var(--space-3xl) 22px var(--space-xl);
    }

    .hero {
        margin-bottom: var(--space-2xl);
    }

    .glance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .links-section {
        flex-direction: column;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .link-card,
    .content-card a {
        transition: none;
    }
    .link-card:hover {
        transform: none;
        box-shadow: none;
    }
}
