/* IFW Global Legal & Policy Page Stylesheet */

.ifw-legal-hero {
    background-color: #07090e;
    background-image: radial-gradient(circle at 80% 20%, rgba(0, 208, 132, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(2, 46, 107, 0.15) 0%, transparent 60%);
    position: relative;
    padding: 50px 0 35px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ifw-legal-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--ifw-gold);
    background: rgba(0, 208, 132, 0.12);
    border: 1px solid rgba(0, 208, 132, 0.3);
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.ifw-legal-title {
    font-family: "Oswald", "Bebas Neue", sans-serif;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ifw-legal-subtitle {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 18px;
}

.ifw-legal-meta {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ifw-legal-hero-icon {
    font-size: 110px;
    color: rgba(0, 208, 132, 0.15);
}

/* Main Legal Layout */
.ifw-legal-section {
    background-color: #07090e;
    color: #cbd5e1;
    min-height: 80vh;
}

/* Sticky Sidebar Navigation */
.ifw-toc-sticky-wrapper {
    position: sticky;
    top: 100px;
}

.ifw-toc-card, .ifw-related-card, .ifw-support-card {
    background: #0d121c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ifw-toc-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
}

.ifw-toc-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.ifw-toc-link {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.ifw-toc-link .toc-num {
    font-family: "Oswald", sans-serif;
    font-size: 12px;
    color: var(--ifw-gold);
    margin-right: 10px;
    font-weight: 700;
    opacity: 0.7;
}

.ifw-toc-link:hover, .ifw-toc-link.active {
    background: rgba(0, 208, 132, 0.08);
    color: #ffffff;
    border-left-color: var(--ifw-gold);
    padding-left: 22px;
}

.ifw-related-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    color: #cbd5e1;
    text-decoration: none !important;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.ifw-related-link:last-child {
    margin-bottom: 0;
}

.ifw-related-link:hover {
    background: rgba(0, 208, 132, 0.08);
    border-color: rgba(0, 208, 132, 0.3);
    color: #ffffff;
    transform: translateX(4px);
}

.ifw-related-link strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
}

.ifw-related-link small {
    display: block;
    color: #94a3b8;
    font-size: 11.5px;
}

.ifw-support-card {
    padding: 24px 20px;
    background: linear-gradient(180deg, #0d121c 0%, #111827 100%);
    border-top: 3px solid var(--ifw-gold);
}

.ifw-support-card .support-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 208, 132, 0.15);
    color: var(--ifw-gold);
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.ifw-support-card h5 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 6px;
}

.ifw-support-card p {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 12px;
}

.ifw-support-card .phone-link {
    color: var(--ifw-gold);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

/* Policy Content Blocks */
.ifw-policy-intro-card {
    background: #0d121c;
    border: 1px solid rgba(0, 208, 132, 0.3);
    border-left: 4px solid var(--ifw-gold);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ifw-policy-block {
    background: #0d121c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.ifw-policy-num-badge, .ifw-policy-block .block-num {
    position: absolute;
    top: 25px;
    right: 25px;
    font-family: "Oswald", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: rgba(0, 208, 132, 0.25);
    line-height: 1;
}

.ifw-policy-heading, .ifw-block-header h3 {
    font-family: var(--ifw-font-main);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
}

.ifw-info-pill, .ifw-data-pill {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 6px;
    height: 100%;
}

.ifw-info-pill .icon, .ifw-data-pill i {
    width: 38px;
    height: 38px;
    background: rgba(0, 208, 132, 0.12);
    color: var(--ifw-gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ifw-info-pill strong, .ifw-data-pill strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 4px;
}

.ifw-info-pill p, .ifw-data-pill p {
    color: #94a3b8;
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 0;
}

.ifw-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ifw-check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.6;
}

.ifw-check-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 20px;
    color: var(--ifw-gold);
}

.ifw-highlight-box, .ifw-callout-box {
    background: rgba(0, 208, 132, 0.06);
    border: 1px solid rgba(0, 208, 132, 0.25);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 18px 0;
}

.ifw-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 20px 14px;
}

.ifw-stat-card h6 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ifw-contact-box, .ifw-contact-officer-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 20px;
    margin-top: 15px;
}

.ifw-contact-box .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 208, 132, 0.15);
    color: var(--ifw-gold);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   LEGAL & POLICY PAGES LIGHT THEME (WHITE MODE) OVERRIDES
   ========================================================================== */
html.theme-light .ifw-legal-hero {
    background-color: #f1f5f9 !important;
    background-image: radial-gradient(circle at 80% 20%, rgba(0, 208, 132, 0.12) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(2, 46, 107, 0.08) 0%, transparent 60%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.theme-light .ifw-legal-title {
    color: #0f172a !important;
}

html.theme-light .ifw-legal-subtitle {
    color: #334155 !important;
}

html.theme-light .ifw-legal-meta {
    color: #64748b !important;
}

html.theme-light .ifw-legal-hero-icon {
    color: rgba(0, 208, 132, 0.22) !important;
}

html.theme-light .ifw-legal-section {
    background-color: #f8fafc !important;
    color: #334155 !important;
}

html.theme-light .ifw-toc-card,
html.theme-light .ifw-related-card,
html.theme-light .ifw-support-card,
html.theme-light .ifw-policy-intro-card,
html.theme-light .ifw-policy-block {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

html.theme-light .ifw-toc-header {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
}

html.theme-light .ifw-toc-link {
    color: #475569 !important;
}

html.theme-light .ifw-toc-link:hover,
html.theme-light .ifw-toc-link.active {
    background: rgba(0, 208, 132, 0.1) !important;
    color: #0f172a !important;
    border-left-color: var(--ifw-gold) !important;
}

html.theme-light .ifw-related-link {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

html.theme-light .ifw-related-link strong {
    color: #0f172a !important;
}

html.theme-light .ifw-related-link small {
    color: #64748b !important;
}

html.theme-light .ifw-support-card h5 {
    color: #0f172a !important;
}

html.theme-light .ifw-support-card p {
    color: #475569 !important;
}

html.theme-light .ifw-policy-heading,
html.theme-light .ifw-block-header h3 {
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
}

html.theme-light .ifw-policy-block p,
html.theme-light .ifw-policy-intro-card p {
    color: #334155 !important;
}

html.theme-light .ifw-info-pill,
html.theme-light .ifw-data-pill,
html.theme-light .ifw-stat-card,
html.theme-light .ifw-contact-box,
html.theme-light .ifw-contact-officer-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html.theme-light .ifw-info-pill strong,
html.theme-light .ifw-data-pill strong,
html.theme-light .ifw-stat-card h6 {
    color: #0f172a !important;
}

html.theme-light .ifw-info-pill p,
html.theme-light .ifw-data-pill p {
    color: #475569 !important;
}

html.theme-light .ifw-check-list li {
    color: #334155 !important;
}

