/* Partner API docs — sits on top of legal-pages.css */

.api-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.15rem;
}

.api-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    line-height: 1.2;
}

.api-hero-actions .btn-solid,
.api-hero-actions a.btn-solid {
    background: #4B367C;
    color: #fff !important;
    border: 1px solid #4B367C;
}

.api-hero-actions .btn-solid:hover,
.api-hero-actions a.btn-solid:hover {
    background: #3d2a63;
    color: #fff !important;
}

.api-hero-actions .btn-outline,
.api-hero-actions a.btn-outline {
    background: #fff;
    color: #4B367C !important;
    border: 1px solid #d9d2e8;
}

.api-hero-actions .btn-outline:hover,
.api-hero-actions a.btn-outline:hover {
    background: #f4f1fb;
    color: #3d2a63 !important;
}

.legal-content .endpoint {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 1.1rem 0 0.7rem;
    padding: 0.7rem 0.85rem;
    background: #f7f5f2;
    border: 1px solid #ebe6de;
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    color: #1a1a2e;
}

.legal-content .endpoint code {
    background: transparent;
    padding: 0;
}

.method {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.48rem;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.method.get { background: #dbeafe; color: #1d4ed8; }
.method.post { background: #dcfce7; color: #166534; }
.method.delete { background: #fee2e2; color: #b91c1c; }

.legal-content code,
.k {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84em;
    background: #f1ede6;
    color: #2d2640;
    padding: 0.08em 0.4em;
    border-radius: 5px;
}

pre.api {
    background: #1a1a2e;
    color: #e8e4f0;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    overflow-x: auto;
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 0.55rem 0 1.35rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

pre.api code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.api-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0.75rem 0 1.35rem;
}

.api-card {
    border: 1px solid #e6e1d8;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: #faf9f6;
}

.api-card h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.api-card p {
    margin-bottom: 0;
    font-size: 0.92rem;
}

@media (max-width: 720px) {
    .api-cards { grid-template-columns: 1fr; }
    .api-hero-actions a { width: 100%; }
}
