/* ---------------------------------
   API ACCESS PAGE
---------------------------------- */

.api-page {
    background: linear-gradient(180deg, var(--background-color) 0%, #fff4d6 100%);
}

/* Section spacing */
.api-section {
    padding: clamp(32px, 6vw, 72px) 0;
}

/* Page title block */
.api-section .section-title {
    text-align: center;
    margin-bottom: 32px;
}

.api-section .section-title h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--heading-color);
}

.api-section .section-title p {
    max-width: 720px;
    margin: 12px auto 0;
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Main content card */
.api-content {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 36px);
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    line-height: 1.65;
}

/* Text spacing */
.api-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Section heading */
.api-content h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--heading-color);
}

/* Email link emphasis */
.api-content a {
    color: var(--primary-color);
    font-weight: 600;
    word-break: break-word;
}

.api-content a:hover {
    color: var(--primary-color-dark);
}

/* Subtle divider feel without an actual <hr> */
.api-content h2::before {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-bottom: 10px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Mobile refinements – PROPER SPACING */
@media (max-width: 480px) {
    .api-section {
        padding: 56px 0 72px;
    }

    .api-section .section-title {
        text-align: left;
        margin-bottom: 36px;
        padding: 0 20px;
    }

    .api-section .section-title h1 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .api-section .section-title p {
        font-size: 1.1rem;
        line-height: 1.65;
        margin-top: 18px;
    }

    .api-content {
        margin: 0 16px;
        padding: 40px 28px;
        border-radius: 22px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
    }

    .api-content p {
        font-size: 1.1rem;
        line-height: 1.75;
        margin-bottom: 1.6rem;
    }

    .api-content h2 {
        margin-top: 40px;
        margin-bottom: 18px;
        font-size: 1.45rem;
    }

    .api-content h2::before {
        width: 56px;
        height: 4px;
        margin-bottom: 16px;
    }
}
