.terms-page main {
    background: var(--surface-muted);
}

.terms-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, rgba(29, 112, 247, 0.08), rgba(45, 212, 191, 0.1));
}

.terms-hero__inner {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.terms-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(29, 112, 247, 0.15);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.terms-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3rem);
}

.terms-hero p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.terms-hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.terms-hero__meta span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.terms-hero__meta strong,
.terms-hero__meta a {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

.terms-overview {
    padding: 2.5rem 0;
}

.terms-overview__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.terms-overview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.terms-overview__card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 220px;
}

.terms-overview__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.terms-overview__index {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.terms-overview__content h3 {
    margin: 0;
    font-size: 1.2rem;
}

.terms-overview__content p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
}

.terms-overview__badge {
    display: inline-flex;
    margin-bottom: 0.4rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.18);
    color: var(--primary-dark);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.terms-overview__actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.terms-overview__actions span {
    color: var(--text-muted);
    font-weight: 600;
}

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

    .terms-overview__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
