/* =============================================
   LEGAL PAGES STYLES (Terms of Service & Privacy Policy)
   ICB Tech Solutions
   ============================================= */

/* Legal Hero */
.icb-legal-hero {
    padding: 160px 5% 60px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.icb-legal-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.icb-legal-subtitle {
    color: var(--icb-text-secondary);
    font-size: 1rem;
    margin-top: 1rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

/* Legal Section */
.icb-legal-section {
    padding: 0 5% 100px;
    position: relative;
    z-index: 1;
}

.icb-legal-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .icb-legal-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Legal Navigation Sidebar */
.icb-legal-nav {
    position: sticky;
    top: 100px;
    align-self: start;
    background: var(--icb-card-bg);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

@media (max-width: 1000px) {
    .icb-legal-nav {
        position: static;
        max-height: none;
    }
}

.icb-legal-nav h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--icb-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    letter-spacing: 1px;
}

.icb-legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.icb-legal-nav li {
    margin-bottom: 0.5rem;
}

.icb-legal-nav a {
    display: block;
    color: var(--icb-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.icb-legal-nav a:hover {
    color: var(--icb-primary);
    background: rgba(0, 212, 255, 0.1);
}

/* Scrollbar styling for nav */
.icb-legal-nav::-webkit-scrollbar {
    width: 4px;
}

.icb-legal-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.icb-legal-nav::-webkit-scrollbar-thumb {
    background: var(--icb-primary);
    border-radius: 2px;
}

/* Legal Content */
.icb-legal-content {
    background: var(--icb-card-bg);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.icb-legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--icb-gradient-1);
    border-radius: 20px 20px 0 0;
}

@media (max-width: 768px) {
    .icb-legal-content {
        padding: 1.5rem;
    }
}

/* Legal Intro */
.icb-legal-intro {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.icb-legal-intro p {
    color: var(--icb-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.icb-legal-intro p:last-child {
    margin-bottom: 0;
}

/* Legal Section Content */
.icb-legal-section-content {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 100px;
}

.icb-legal-section-content:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.icb-legal-section-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--icb-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.icb-legal-section-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--icb-text-primary);
    margin: 1.75rem 0 1rem;
}

.icb-legal-section-content p {
    color: var(--icb-text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.icb-legal-section-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.icb-legal-section-content ul li {
    position: relative;
    color: var(--icb-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.icb-legal-section-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--icb-primary);
    font-weight: bold;
}

.icb-legal-section-content ul li strong {
    color: var(--icb-text-primary);
}

.icb-legal-section-content a {
    color: var(--icb-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.icb-legal-section-content a:hover {
    color: var(--icb-secondary);
    text-decoration: underline;
}

/* Highlight Box */
.icb-highlight-box {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.icb-highlight-box h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--icb-primary);
    margin: 0 0 0.75rem 0 !important;
}

.icb-highlight-box p {
    margin-bottom: 0 !important;
    color: var(--icb-text-primary) !important;
}

/* Contact Box */
.icb-legal-contact-box {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.icb-legal-contact-box p {
    margin-bottom: 0.5rem !important;
}

.icb-legal-contact-box p:last-child {
    margin-bottom: 0 !important;
}

.icb-legal-contact-box strong {
    color: var(--icb-text-primary);
}

/* Footer Note */
.icb-legal-footer-note {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.icb-legal-footer-note p {
    margin-bottom: 0.5rem;
    color: var(--icb-text-secondary);
    font-size: 0.9rem;
}

.icb-legal-footer-note p:last-child {
    margin-bottom: 0;
}

.icb-legal-footer-note strong {
    color: var(--icb-text-primary);
}

/* Print Styles */
@media print {
    .icb-legal-nav,
    .icb-nav,
    .icb-footer {
        display: none;
    }

    .icb-legal-container {
        grid-template-columns: 1fr;
    }

    .icb-legal-content {
        background: white;
        color: black;
        border: none;
        padding: 0;
    }

    .icb-legal-section-content h2,
    .icb-legal-section-content h3 {
        color: black;
    }

    .icb-legal-section-content p,
    .icb-legal-section-content ul li {
        color: #333;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .icb-legal-hero {
        padding: 140px 5% 40px;
    }

    .icb-legal-section-content h2 {
        font-size: 1.25rem;
    }

    .icb-legal-section-content h3 {
        font-size: 1.05rem;
    }

    .icb-legal-section-content p,
    .icb-legal-section-content ul li {
        font-size: 0.9rem;
    }
}
