/* Final shared polish layer for ShuleGram static pages. */
:root {
    --sg-primary: #7c3aed;
    --sg-primary-dark: #5b21b6;
    --sg-accent: #ec4899;
    --sg-ink: #111827;
    --sg-text: #374151;
    --sg-muted: #6b7280;
    --sg-line: #e5e7eb;
    --sg-soft: #f8fafc;
    --sg-card: #ffffff;
    --sg-footer: #111827;
    --sg-footer-alt: #172033;
    --sg-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
    --sg-shadow-soft: 0 10px 30px rgba(124, 58, 237, 0.10);
}

html {
    scroll-padding-top: 88px;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: var(--sg-text) !important;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 30rem),
        linear-gradient(180deg, #ffffff 0%, var(--sg-soft) 100%) !important;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Poppins", "Inter", sans-serif !important;
    color: var(--sg-ink);
    letter-spacing: 0;
}

p,
li {
    color: inherit;
}

a {
    text-underline-offset: 0.18em;
}

.container {
    max-width: 1140px;
}

.navbar,
.navbar.fixed-top {
    min-height: 72px;
    padding: 0.7rem 0 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.05) !important;
}

.navbar.scrolled {
    min-height: 64px;
    padding: 0.45rem 0 !important;
}

.navbar-brand {
    color: var(--sg-ink) !important;
    gap: 0.5rem;
}

.navbar-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.navbar-nav {
    align-items: center;
    gap: 0.15rem;
}

.navbar .nav-link {
    color: var(--sg-text) !important;
    border-radius: 8px;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0.55rem 0.75rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: var(--sg-primary) !important;
    background: rgba(124, 58, 237, 0.08);
}

.navbar .nav-link::after {
    display: none !important;
}

.dropdown-menu {
    border: 1px solid var(--sg-line);
    border-radius: 8px;
    box-shadow: var(--sg-shadow);
}

.dropdown-item {
    border-radius: 6px;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(124, 58, 237, 0.10);
    color: var(--sg-primary);
}

.btn,
.btn-primary,
.btn-primary-custom,
.btn-get-started,
.btn-light,
.btn-outline-light {
    border-radius: 8px !important;
    font-weight: 700 !important;
    min-height: 44px;
}

.btn-primary,
.btn-primary-custom,
.btn-get-started {
    background: linear-gradient(135deg, var(--sg-primary), var(--sg-primary-dark)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.20);
}

.btn-primary:hover,
.btn-primary-custom:hover,
.btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(124, 58, 237, 0.26);
}

.hero-section,
.policy-hero,
.hero-gradient {
    min-height: auto !important;
    padding: 8.5rem 0 5rem !important;
    background:
        linear-gradient(135deg, rgba(91, 33, 182, 0.94) 0%, rgba(124, 58, 237, 0.91) 48%, rgba(236, 72, 153, 0.86) 100%),
        url("https://images.unsplash.com/photo-1503676260728-1c00da094a05?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat !important;
    color: #fff !important;
    border-bottom: 0 !important;
}

.hero-section::before,
.policy-hero::before,
.hero-gradient::before {
    opacity: 0 !important;
}

.hero-section h1,
.policy-hero h1,
.hero-gradient h1,
.hero-section .display-4,
.hero-gradient .display-3 {
    color: #fff !important;
    font-size: clamp(2.1rem, 5vw, 4rem) !important;
    line-height: 1.08 !important;
    max-width: 900px;
    margin-inline: auto;
    text-shadow: 0 2px 16px rgba(17, 24, 39, 0.24);
}

.hero-section p,
.policy-hero p,
.hero-gradient p {
    color: rgba(255, 255, 255, 0.90) !important;
    max-width: 760px;
    margin-inline: auto;
}

.hero-icon,
.contact-icon,
.highlight-icon {
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.policy-meta,
.last-updated {
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--sg-primary) !important;
    gap: 0.75rem;
}

.policy-content {
    padding: 4rem 0 !important;
}

.policy-content > .row {
    row-gap: 1.5rem;
}

.section-card,
.feature-card,
.right-card,
.term-item,
.principle-item,
.measure-category,
.data-category,
.contact-card,
.important-notice,
.highlight-box,
.info-box {
    border-radius: 8px !important;
    border: 1px solid rgba(229, 231, 235, 0.95) !important;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06) !important;
}

.section-card {
    background: var(--sg-card) !important;
    padding: clamp(1.25rem, 3vw, 2.25rem) !important;
    margin-bottom: 1.25rem !important;
}

.section-card:hover,
.feature-card:hover,
.right-card:hover,
.term-item:hover,
.principle-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--sg-shadow-soft) !important;
}

.section-card::before,
.footer::before,
.measure-category::after {
    display: none !important;
}

.section-number {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--sg-primary), var(--sg-accent)) !important;
    color: #fff !important;
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
}

.section-title {
    color: var(--sg-ink) !important;
    font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
}

.toc {
    top: 92px !important;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    border-radius: 8px !important;
    border: 1px solid var(--sg-line) !important;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06) !important;
}

.toc-item,
.sidebar-item {
    border-radius: 8px !important;
    color: var(--sg-text) !important;
}

.toc-item:hover,
.sidebar-item:hover,
.toc-item.active,
.sidebar-item.active {
    transform: none !important;
    background: rgba(124, 58, 237, 0.09) !important;
    color: var(--sg-primary) !important;
}

.data-table,
.table {
    border-radius: 8px !important;
    overflow: hidden;
}

.table-responsive {
    border-radius: 8px;
}

footer,
.footer,
.policy-footer {
    background: linear-gradient(135deg, var(--sg-footer) 0%, var(--sg-footer-alt) 100%) !important;
    color: #fff !important;
    margin-top: 0 !important;
    padding: 3.5rem 0 2.25rem !important;
}

footer h5,
.footer h5,
footer .navbar-brand,
.footer .navbar-brand {
    color: #fff !important;
}

footer p,
.footer p,
footer span,
.footer span,
footer a,
.footer a {
    color: rgba(255, 255, 255, 0.72) !important;
}

footer a:hover,
.footer a:hover {
    color: #fff !important;
}

.wave-shape-above-footer {
    display: none !important;
}

.back-to-top,
.scroll-top {
    width: 46px !important;
    height: 46px !important;
    right: 1rem !important;
    bottom: 1rem !important;
    border-radius: 8px !important;
    background: var(--sg-primary) !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem !important;
        background: #fff;
        border: 1px solid var(--sg-line);
        border-radius: 8px;
        box-shadow: var(--sg-shadow);
    }

    .navbar-nav {
        align-items: stretch;
    }

    .navbar .nav-link {
        width: 100%;
        padding: 0.75rem 0.8rem !important;
        border-bottom: 0 !important;
    }

    .offcanvas {
        width: min(88vw, 340px) !important;
    }

    .offcanvas-body .nav-link {
        border-bottom: 0 !important;
    }

    .hero-section,
    .policy-hero,
    .hero-gradient {
        padding: 7rem 0 3.75rem !important;
    }

    .toc {
        position: static !important;
        max-height: none;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .container {
        padding-right: 1.1rem;
        padding-left: 1.1rem;
    }

    .hero-section,
    .policy-hero,
    .hero-gradient {
        padding: 6.25rem 0 3rem !important;
        text-align: center;
    }

    .policy-content {
        padding: 2.5rem 0 !important;
    }

    .section-card,
    .important-notice,
    .contact-section,
    .highlight-box {
        padding: 1.25rem !important;
    }

    .policy-meta,
    .last-updated {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 8px !important;
    }

    footer .row > [class*="col-"] {
        margin-bottom: 0.75rem;
    }
}
