/*
 * Terms of Service Page Styles
 * Page-specific styling for the terms.php page
 */

/* Terms Page Hero */
.terms-page .hero-section,
body:has(.terms-section) .hero-section {
    background: linear-gradient(135deg, var(--cp-black) 0%, #1a1a1a 100%);
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -70px;
    padding-top: 70px;
    padding-bottom: 3rem;
}

.terms-page .hero-section::before,
body:has(.terms-section) .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.terms-page .hero-content,
body:has(.terms-section) .hero-content {
    position: relative;
    z-index: 2;
}

.terms-page .hero-title,
body:has(.terms-section) .hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.terms-page .hero-subtitle,
body:has(.terms-section) .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Terms Content Sections - Enhanced Compact Layout */
.terms-section {
    margin-bottom: 2.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.terms-section:last-of-type {
    border-bottom: none;
}

/* Content Container Constraints */
.section .container .row .col-lg-8 {
    max-width: 900px;
    margin: 0 auto;
}

.terms-section h2 {
    color: var(--cp-red-primary);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
    line-height: 1.3;
}

.terms-section h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    line-height: 1.4;
}

.terms-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    max-width: 720px;
}

.terms-section ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
    max-width: 720px;
}

.terms-section ul li {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.7rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.terms-section ul li::before {
    content: '•';
    color: var(--cp-red-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.terms-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    max-width: 720px;
}

.terms-section ol li {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.terms-section strong {
    color: var(--white);
    font-weight: 600;
}

.terms-section a {
    color: var(--cp-red-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-section a:hover {
    color: var(--cp-red-secondary);
    text-decoration: underline;
}

/* Safety Notice Highlighting - Enhanced */
.terms-section p:has(strong:contains("IMPORTANT SAFETY NOTICE")),
.terms-section p:contains("IMPORTANT SAFETY NOTICE") {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid var(--cp-red-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 720px;
}

/* CTA Section in Terms - Enhanced */
.terms-section.text-center {
    background: var(--cp-shade);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    margin: 3rem auto 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
}

.terms-section.text-center h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
    line-height: 1.3;
}

.terms-section.text-center p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 100%;
}

/* Responsive Design - Enhanced */
@media (max-width: 768px) {
    .terms-page .hero-section,
    body:has(.terms-section) .hero-section {
        margin-top: -55px;
        padding-top: 55px;
        min-height: 40vh;
    }
    
    .terms-page .hero-title,
    body:has(.terms-section) .hero-title {
        font-size: 2.2rem;
    }
    
    .terms-section {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
        max-width: 100%;
    }
    
    .terms-section h2 {
        font-size: 1.4rem;
    }
    
    .terms-section h3 {
        font-size: 1.2rem;
    }
    
    .terms-section p,
    .terms-section ul,
    .terms-section ol {
        max-width: 100%;
    }
    
    .section .container .row .col-lg-8 {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .terms-page .hero-section,
    body:has(.terms-section) .hero-section {
        margin-top: -50px;
        padding-top: 50px;
    }
    
    .terms-page .hero-title,
    body:has(.terms-section) .hero-title {
        font-size: 1.9rem;
    }
    
    .terms-section.text-center {
        padding: 2rem 1.5rem;
        max-width: 100%;
        margin: 2rem auto 0;
    }
    
    .terms-section {
        padding: 1rem 0;
    }
    
    .section .container .row .col-lg-8 {
        padding: 0 0.5rem;
    }
}
