/* ===========================
   BASE RESETS & PAGE SETUP
=========================== */
header.reg-bg {
    display: none !important;
}

main > section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body {
    background: #F0F2F7;
}

/* ===========================
   TOP STRIPE
=========================== */
.top-stripe {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #f58220 0%, #ff9a42 60%, #f58220 100%);
}

/* ===========================
   HERO SECTION
=========================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1B3A61 0%, #0F2544 55%, #0A1C2E 100%);
    color: white;
    padding: 4rem 0 5rem 0;
    overflow: hidden;
}

/* dot-grid pattern */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* orange glow top-right */
.hero-section::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(245,130,32,0.18) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-logo {
    margin-bottom: 1.5rem;
}

.hero-logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245,130,32,0.25);
    border: 1px solid rgba(245,130,32,0.45);
    color: #ffd6a5;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.82;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.hero-dates {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.88rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.hero-date-pill i {
    color: #f58220;
}

/* ===========================
   MAIN LAYOUT: sidebar + content
=========================== */
.legal-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2.5rem 0 4rem 0;
}

/* ===========================
   STICKY SIDEBAR TOC
=========================== */
.toc-sidebar {
    position: sticky;
    top: 1.5rem;
}

.toc-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid #e8ecf3;
    overflow: hidden;
}

.toc-header {
    background: linear-gradient(135deg, #1B3A61 0%, #0F2544 100%);
    color: white;
    padding: 1rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-header i {
    color: #f58220;
}

.toc-nav {
    padding: 0.5rem 0;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none !important;
    transition: all 0.18s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.toc-link i {
    width: 16px;
    text-align: center;
    color: #a0aec0;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: color 0.18s;
}

.toc-link:hover {
    background: #fef6ee;
    color: #f58220;
    border-left-color: #f58220;
}

.toc-link:hover i {
    color: #f58220;
}

.toc-link.active {
    background: #fef6ee;
    color: #e07310;
    border-left-color: #f58220;
    font-weight: 600;
}

.toc-link.active i {
    color: #f58220;
}

.toc-divider {
    height: 1px;
    background: #f0f2f7;
    margin: 0.25rem 0;
}

/* ===========================
   MOBILE TOC (pill strip)
=========================== */
.mobile-toc {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e9f0;
}

.mobile-toc::-webkit-scrollbar { display: none; }

.mobile-toc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f0f2f7;
    color: #4a5568;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.18s;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.mobile-toc-pill:hover,
.mobile-toc-pill.active {
    background: #fff4ea;
    color: #f58220;
    border-color: #f58220;
}

/* ===========================
   CONTENT AREA
=========================== */
.legal-content-col {
    min-width: 0;
}

/* ===========================
   ACCORDION SECTION CARDS
=========================== */
.section-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf3;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
    scroll-margin-top: 120px;
}

html {
    scroll-padding-top: 120px;
    scroll-behavior: smooth;
}

.section-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}

.section-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    user-select: none;
    background: #fff;
    transition: background 0.18s;
}

.section-card-header:hover {
    background: #fafbfd;
}

.section-card-header[aria-expanded="true"] {
    border-bottom: 1px solid #f0f2f7;
}

.section-icon-wrap {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f58220 0%, #ff9a42 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(245,130,32,0.3);
}

.section-num-badge {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f2f7;
    color: #6b7a99;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-card-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    color: #1B3A61;
    margin: 0;
}

.section-chevron {
    flex-shrink: 0;
    color: #a0aec0;
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.section-card-header[aria-expanded="true"] .section-chevron {
    transform: rotate(180deg);
}

.section-card-body {
    padding: 1.5rem 1.5rem 1.5rem 4.5rem;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.75;
}

.section-card-body p {
    margin-bottom: 1rem;
}

.section-card-body p:last-child {
    margin-bottom: 0;
}

.section-card-body ul,
.section-card-body ol {
    margin: 0.75rem 0 1rem 0;
    padding-left: 1.4rem;
}

.section-card-body li {
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}

.section-card-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1B3A61;
    margin: 1.25rem 0 0.5rem 0;
}

.section-card-body h4:first-child {
    margin-top: 0;
}

/* subsection divider */
.sub-divider {
    height: 1px;
    background: #f0f2f7;
    margin: 1.25rem 0;
}

/* DMCA highlight box */
.highlight-box {
    background: #fef6ee;
    border-left: 4px solid #f58220;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.highlight-box strong {
    display: block;
    color: #1B3A61;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Group header for EULA, Refund, Copyright */
.section-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #a0aec0;
    padding: 0.75rem 1.5rem 0.25rem;
}

/* ===========================
   CONTACT SECTION
=========================== */
.contact-section-card {
    background: linear-gradient(135deg, #1B3A61 0%, #0F2544 100%);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.contact-section-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.contact-section-card > * {
    position: relative;
    z-index: 1;
}

.contact-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.contact-section-subtitle {
    opacity: 0.75;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.contact-card-item {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.875rem;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.contact-card-item:hover {
    background: rgba(255,255,255,0.16);
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f58220, #ff9a42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    box-shadow: 0 6px 16px rgba(245,130,32,0.4);
}

.contact-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.65;
}

.contact-card-value {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        display: none;
    }

    .mobile-toc {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 3rem 0 4rem 0;
    }

    .section-card-body {
        padding: 1.25rem 1.25rem;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .legal-layout {
        padding: 1.5rem 0 3rem 0;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
