/* ===================================================================
   pages.css — Marketing & legal subpages (Integrations, Support,
   Terms, Privacy). Builds entirely on the design tokens defined in
   styles.css (:root). No new look — same blues, type, spacing, shadows.
   =================================================================== */

/* --- Subpage shell: solid header + offset for the fixed header --- */
.subpage .header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
}

.subpage .header-logo-link {
    display: inline-flex;
    align-items: center;
}

.page-main {
    padding-top: var(--header-height);
}

/* --- Generic content container for subpages (narrower than home) --- */
.page-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   PAGE HERO (shared by all subpages)
   =================================== */
.page-hero {
    position: relative;
    padding: 4.5rem 0 3rem;
    background: var(--gradient-glow);
    border-bottom: 1px solid var(--gray-200);
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: var(--fs-fluid-title);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--primary);
    margin: 0 0 1rem;
}

.page-hero__summary {
    font-size: var(--fs-heading);
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0;
}

.page-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* ===================================
   CONTENT SECTIONS
   =================================== */
.page-section {
    padding: 3rem 0;
}

.page-section + .page-section {
    border-top: 1px solid var(--gray-100);
}

.page-section__title {
    font-family: var(--font-heading);
    font-size: var(--fs-heading-lg);
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1.5rem;
    letter-spacing: -0.01em;
}

/* "What you get" — checkmark bullet list */
.benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.benefit-list li {
    position: relative;
    padding-left: 2.25rem;
    font-size: var(--fs-body-lg);
    line-height: 1.6;
    color: var(--gray-700);
}

.benefit-list li::before {
    content: '\f00c'; /* fa-check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--secondary);
    background: var(--gradient-glow);
    border: 1px solid rgba(3, 105, 161, 0.2);
    border-radius: var(--radius-full);
}

/* "How to connect" — numbered steps */
.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
    display: grid;
    gap: 1.25rem;
}

.step-list li {
    position: relative;
    padding-left: 3rem;
    font-size: var(--fs-body-lg);
    line-height: 1.6;
    color: var(--gray-700);
    min-height: 2rem;
    display: flex;
    align-items: center;
}

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-body);
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 1px 3px rgba(3, 105, 161, 0.25);
}

/* Note callout */
.page-note {
    margin: 2rem 0 0;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--secondary);
    border-radius: var(--radius-md);
    font-size: var(--fs-body);
    color: var(--gray-600);
    line-height: 1.6;
}

.page-note i {
    color: var(--secondary);
    margin-right: 0.4rem;
}

/* ===================================
   INTEGRATIONS INDEX — card grid
   =================================== */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.integration-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                border-color var(--transition-base);
}

.integration-card:hover {
    transform: translateY(-4px);
    border-color: rgba(3, 105, 161, 0.4);
    box-shadow: var(--shadow-lg);
}

.integration-card__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.integration-card__name {
    font-family: var(--font-heading);
    font-size: var(--fs-heading);
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.integration-card__summary {
    font-size: var(--fs-body);
    line-height: 1.55;
    color: var(--gray-500);
    margin: 0;
    flex-grow: 1;
}

.integration-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.25rem;
}

.integration-card__cta i {
    transition: transform var(--transition-fast);
}

.integration-card:hover .integration-card__cta i {
    transform: translateX(3px);
}

/* Detail page logo + name lockup in hero */
.integration-lockup {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.integration-lockup img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

/* Breadcrumb */
.breadcrumb {
    font-size: var(--fs-sm);
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--gray-400);
    margin: 0 0.4rem;
}

/* ===================================
   LEGAL / SUPPORT TYPOGRAPHY (prose)
   =================================== */
.prose {
    font-size: var(--fs-body-lg);
    line-height: 1.7;
    color: var(--gray-700);
}

.prose h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-heading-lg);
    font-weight: 700;
    color: var(--gray-800);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
}

.prose h3 {
    font-size: var(--fs-heading);
    font-weight: 600;
    color: var(--gray-800);
    margin: 1.75rem 0 0.75rem;
}

.prose p {
    margin: 0 0 1.1rem;
}

.prose ul {
    margin: 0 0 1.1rem;
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--primary-dark);
}

.prose strong {
    color: var(--gray-800);
    font-weight: 600;
}

/* Sub-processors / data tables within prose */
.prose .legal-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 1.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.prose .legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-body);
    min-width: 680px;
}

.prose .legal-table th,
.prose .legal-table td {
    text-align: left;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}

.prose .legal-table thead th {
    background: var(--gray-50);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
}

.prose .legal-table tbody tr:last-child td {
    border-bottom: none;
}

.prose .legal-table tbody td:first-child {
    font-weight: 600;
    color: var(--gray-800);
}

.legal-meta {
    font-size: var(--fs-sm);
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.legal-switch {
    display: inline-flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: var(--fs-sm);
}

.legal-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.legal-switch a:hover {
    text-decoration: underline;
}

/* Contact cards for /support */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 0;
}

.contact-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-card__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-glow);
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

.contact-card h3 {
    font-size: var(--fs-heading-sm);
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.4rem;
}

.contact-card a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: var(--fs-body-lg);
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    font-size: var(--fs-sm);
    color: var(--gray-500);
    margin: 0.4rem 0 0;
    line-height: 1.5;
}

/* Note: the enriched global footer rules (.footer-top, .footer-brand,
   .footer-nav, .footer-col*) live in styles.css so they apply to the
   homepage and every subpage alike. */

@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 0 2.25rem;
    }
}
