body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #f4f6fb;
    color: #101836;
    margin: 0;
    padding: 0;
}

.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    background: #fff;
    border-bottom: 1px solid rgba(4, 38, 152, 0.1);
    box-shadow: 0 8px 24px rgba(8, 15, 52, 0.05);
}

.terms-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #042698;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.back-btn {
    border: 1px solid #042698;
    color: #042698;
    background: #fdfee9;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-btn:hover,
.back-btn:focus-visible {
    background: #042698;
    color: #fff;
}

.content-container {
    max-width: 950px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

.content-container h1 {
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
    color: #0b163b;
}

.intro-text {
    font-size: 1rem;
    color: #4b5275;
    line-height: 1.7;
    margin-bottom: 32px;
}

.term-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

details.term-item {
    border: 1px solid #e2e6f0;
    border-radius: 18px;
    background: #fff;
    padding: 18px 22px;
    box-shadow: 0 15px 35px rgba(9, 13, 34, 0.05);
}

details.term-item[open] {
    border-color: #9fb5ff;
}

details.term-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b163b;
}

details.term-item summary::-webkit-details-marker {
    display: none;
}

details.term-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: #042698;
    transition: transform 0.2s ease;
}

details.term-item[open] summary::after {
    transform: rotate(45deg);
}

.term-content {
    margin-top: 16px;
    color: #33395a;
    line-height: 1.7;
    font-size: 0.98rem;
}

.term-content ul {
    margin: 10px 0 16px 18px;
}

.term-content li {
    margin-bottom: 6px;
}

.term-content strong {
    color: #0b163b;
}

.version-note {
    margin-top: 32px;
    font-size: 0.92rem;
    color: #6c7391;
}

@media (max-width: 640px) {
    .terms-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .content-container {
        margin: 24px auto 60px;
        padding: 0 18px;
    }

    details.term-item {
        padding: 16px 18px;
    }
}
