/* ========================================
   CyberCash Public Terms & Conditions Page
   ======================================== */

/* ---- HEADER ---- */
.terms-header {
    background: linear-gradient(135deg, var(--topnav-primary) 0%, var(--topnav-primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 3.5rem 1.5rem;
}

.terms-header-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.3px;
}

.terms-header-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0;
    font-weight: 400;
}

/* ---- SECTIONS ---- */
.terms-section {
    padding: 3rem 1.5rem;
}

.terms-section-alt {
    background: #f3f2f1;
}

.terms-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #323130;
    margin: 0 0 1rem;
}

.terms-section-intro {
    font-size: 0.95rem;
    color: #605e5c;
    margin: 0 0 1.5rem;
}

/* ---- TERMS CONTENT ---- */
.terms-content {
    font-size: 0.95rem;
    color: #323130;
    line-height: 1.75;
    max-width: 800px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 1.5rem 2rem;
}

.terms-section-alt .terms-content {
    background: #fff;
}

.terms-empty {
    font-size: 0.95rem;
    color: #a19f9d;
    font-style: italic;
}

/* ---- BRANCH ACCORDION ---- */
.terms-branch-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 800px;
}

.terms-branch-item {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.terms-branch-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #323130;
    text-align: left;
    transition: background 0.15s;
}

.terms-branch-toggle:hover {
    background: #f3f2f1;
}

.terms-branch-toggle:focus-visible {
    outline: 2px solid var(--topnav-primary);
    outline-offset: -2px;
}

.terms-branch-name {
    flex: 1;
}

.terms-branch-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.terms-branch-toggle[aria-expanded="true"] .terms-branch-chevron {
    transform: rotate(180deg);
}

.terms-branch-content {
    border-top: 1px solid #e1e1e1;
    padding: 1.25rem 1.5rem;
}

.terms-branch-content[hidden] {
    display: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .terms-header {
        padding: 2.5rem 1rem;
    }
    .terms-header-title {
        font-size: 1.5rem;
    }
    .terms-content {
        padding: 1rem 1.25rem;
    }
    .terms-branch-toggle {
        padding: 0.85rem 1rem;
    }
}
