/* Terms & Conditions v2 — Clean editorial legal layout with Top Index + Collapsible Sections */

.rstc-tc-wrap {
    padding: 56px 0 92px;
    background: #f7faf3;
}

.rstc-tc-shell {
    max-width: 1020px;
    margin: 0 auto;
}

/* Top Document Switcher (Terms & Conditions / Privacy Policy) */
.rstc-doc-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 8px;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #dce8cd;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(7, 24, 12, 0.05);
}

.rstc-doc-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #f8fbf4;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.rstc-doc-tab:hover {
    background: #f0f8e5;
    border-color: #cfe4b3;
}

.rstc-doc-tab.is-active {
    background: linear-gradient(135deg, #07180c 0%, #12361c 100%);
    border-color: #1f8a28;
    box-shadow: 0 10px 24px rgba(7, 24, 12, 0.16);
}

.rstc-doc-tab__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rstc-doc-tab__icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e9f5d8;
    color: #1f8a28;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rstc-doc-tab.is-active .rstc-doc-tab__icon {
    background: rgba(198, 242, 90, 0.18);
    color: #c6f25a;
}

.rstc-doc-tab__icon svg {
    width: 20px;
    height: 20px;
}

.rstc-doc-tab__title {
    display: block;
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #07180c;
    line-height: 1.25;
}

.rstc-doc-tab.is-active .rstc-doc-tab__title {
    color: #ffffff;
}

.rstc-doc-tab__meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: #5b6b5e;
}

.rstc-doc-tab.is-active .rstc-doc-tab__meta {
    color: rgba(255, 255, 255, 0.72);
}

.rstc-doc-tab__badge {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #e9f4da;
    color: #1f8a28;
}

.rstc-doc-tab.is-active .rstc-doc-tab__badge {
    background: #8BC53F;
    color: #07180c;
}

.rstc-doc-pane {
    display: none;
    scroll-margin-top: 120px;
}

.rstc-doc-pane.is-active {
    display: block;
}

@media (max-width: 767px) {
    .rstc-doc-switcher {
        grid-template-columns: 1fr;
    }
    .rstc-doc-tab {
        padding: 14px 16px;
    }
}

/* Top Table of Contents (Index) */
.rstc-tc-toc {
    background: #ffffff;
    border: 1px solid #e1ecd4;
    border-radius: 18px;
    padding: 28px 30px 26px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(7, 24, 12, 0.04);
}

.rstc-tc-toc__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ebf2e2;
}

.rstc-tc-toc__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1f8a28;
    margin-bottom: 6px;
}

.rstc-tc-toc__eyebrow::before {
    content: "";
    width: 20px;
    height: 2px;
    background: #8BC53F;
    border-radius: 2px;
}

.rstc-tc-toc__title {
    margin: 0;
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: #07180c;
    line-height: 1.25;
}

.rstc-tc-toc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rstc-tc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f2f8e9;
    border: 1px solid #dcebc8;
    font-size: 12px;
    font-weight: 600;
    color: #1f8a28;
}

.rstc-tc-toc__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.rstc-tc-toc__link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e7f0dc;
    background: #fbfdf8;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.rstc-tc-toc__link:hover,
.rstc-tc-toc__link:focus-visible {
    border-color: #8BC53F;
    background: #f2f9e8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(31, 138, 40, 0.08);
    outline: none;
}

.rstc-tc-toc__num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eef7e1;
    border: 1px solid #d7e9bf;
    color: #1f8a28;
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.rstc-tc-toc__link:hover .rstc-tc-toc__num {
    background: #1f8a28;
    border-color: #1f8a28;
    color: #ffffff;
}

.rstc-tc-toc__text {
    min-width: 0;
    flex: 1 1 auto;
}

.rstc-tc-toc__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #07180c;
    line-height: 1.35;
}

.rstc-tc-toc__range {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #5b6b5e;
}

/* Controls Toolbar (Search + Expand / Collapse All) */
.rstc-tc-toolbar {
    position: sticky;
    top: 76px;
    z-index: 25;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dce8cd;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(7, 24, 12, 0.06);
}

.rstc-tc-search {
    position: relative;
    flex: 1 1 260px;
    max-width: 420px;
}

.rstc-tc-search svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #6b7d6f;
    pointer-events: none;
}

.rstc-tc-search input {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 38px;
    border: 1px solid #d7e5c6;
    border-radius: 10px;
    background: #f9fcf5;
    color: #07180c;
    font-size: 14px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rstc-tc-search input:focus {
    outline: none;
    border-color: #8BC53F;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 197, 63, 0.16);
}

.rstc-tc-search__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #5b6b5e;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: none;
}

.rstc-tc-search__clear.is-visible {
    display: inline-grid;
    place-items: center;
}

.rstc-tc-search__clear:hover {
    background: #eaf3de;
    color: #07180c;
}

.rstc-tc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rstc-tc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid #d6e4c4;
    background: #ffffff;
    color: #07180c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rstc-tc-btn:hover {
    background: #f2f9e8;
    border-color: #8BC53F;
    color: #1f8a28;
}

.rstc-tc-btn--primary {
    background: #1f8a28;
    border-color: #1f8a28;
    color: #ffffff;
}

.rstc-tc-btn--primary:hover {
    background: #187220;
    border-color: #187220;
    color: #ffffff;
}

.rstc-tc-status {
    font-size: 12.5px;
    color: #5b6b5e;
    margin-right: 4px;
}

/* Collapsible Sections */
.rstc-tc-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rstc-tc-section {
    background: #ffffff;
    border: 1px solid #e1ecd4;
    border-radius: 16px;
    overflow: hidden;
    scroll-margin-top: 140px;
    box-shadow: 0 6px 20px rgba(7, 24, 12, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rstc-tc-section.is-open {
    border-color: #cfe3b6;
    box-shadow: 0 10px 28px rgba(7, 24, 12, 0.05);
}

.rstc-tc-section.is-hidden {
    display: none;
}

.rstc-tc-section__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 26px;
    border: 0;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rstc-tc-section__trigger:hover {
    background: #fafdf7;
}

.rstc-tc-section.is-open .rstc-tc-section__trigger {
    background: linear-gradient(180deg, #f8fcf4 0%, #ffffff 100%);
    border-bottom: 1px solid #ebf2e2;
}

.rstc-tc-section__lead {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}

.rstc-tc-section__num {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #07180c;
    color: #c6f25a;
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rstc-tc-section__titles {
    min-width: 0;
    flex: 1 1 auto;
}

.rstc-tc-section__titles h2 {
    margin: 0;
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #07180c;
}

.rstc-tc-section__sub {
    display: inline-block;
    margin-top: 3px;
    font-size: 12.5px;
    font-weight: 500;
    color: #5b6b5e;
}

.rstc-tc-section__chevron {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f2f8e9;
    border: 1px solid #dcebc8;
    color: #1f8a28;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, background 0.2s ease, color 0.2s ease;
}

.rstc-tc-section.is-open .rstc-tc-section__chevron {
    transform: rotate(180deg);
    background: #1f8a28;
    border-color: #1f8a28;
    color: #ffffff;
}

.rstc-tc-section__chevron svg {
    width: 16px;
    height: 16px;
}

/* Section Body Typography */
.rstc-tc-section__panel {
    display: none;
    padding: 26px 32px 24px;
}

.rstc-tc-section.is-open .rstc-tc-section__panel {
    display: block;
}

.rstc-tc-prose {
    color: #2f3d33;
    font-size: 15.5px;
    line-height: 1.78;
}

.rstc-tc-prose p {
    margin: 0 0 13px;
    color: #36453a;
}

.rstc-tc-prose strong {
    color: #07180c;
    font-weight: 600;
}

.rstc-tc-prose h3 {
    scroll-margin-top: 140px;
    margin: 28px 0 12px;
    padding: 0 0 8px;
    border-bottom: 1px solid #edf4e4;
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #07180c;
}

.rstc-tc-prose h3:first-child {
    margin-top: 0;
}

.rstc-tc-prose h4 {
    margin: 20px 0 8px;
    font-family: var(--font-family-Poppins, 'Poppins', sans-serif);
    font-size: 15.5px;
    font-weight: 700;
    color: #1f8a28;
}

.rstc-tc-prose ul,
.rstc-tc-prose ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.rstc-tc-prose ul li,
.rstc-tc-prose ol li {
    margin-bottom: 7px;
    color: #36453a;
    list-style-type: disc;
}

.rstc-tc-prose ul li::marker {
    color: #151515;
}

.rstc-tc-prose a {
    color: #1f8a28;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rstc-tc-prose a:hover {
    color: #07180c;
}

.rstc-tc-section__foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px dashed #e3edd6;
}

.rstc-tc-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1f8a28;
    text-decoration: none !important;
}

.rstc-tc-back:hover {
    color: #07180c;
}

.rstc-tc-empty {
    display: none;
    text-align: center;
    padding: 36px 24px;
    background: #ffffff;
    border: 1px solid #e1ecd4;
    border-radius: 16px;
    color: #4b5a4e;
}

.rstc-tc-empty.is-visible {
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    .rstc-tc-toolbar {
        top: 66px;
    }
    .rstc-tc-toc__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rstc-tc-wrap {
        padding: 32px 0 64px;
    }
    .rstc-tc-toc {
        padding: 20px 18px;
    }
    .rstc-tc-toolbar {
        position: static;
        padding: 12px;
    }
    .rstc-tc-search {
        max-width: 100%;
    }
    .rstc-tc-section__trigger {
        padding: 16px 18px;
    }
    .rstc-tc-section__titles h2 {
        font-size: 16.5px;
    }
    .rstc-tc-section__panel {
        padding: 18px 18px 20px;
    }
    .rstc-tc-prose {
        font-size: 14.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rstc-tc-toc__link,
    .rstc-tc-section__chevron,
    .rstc-tc-btn {
        transition: none !important;
    }
}
