/* Extracted from pages/terms-and-conditions.php */
.terms-page {
            --primary-color: #1a365d;
            --secondary-color: #2b6cb0;
            --text-color: #2d3748;
            --light-bg: #f8f9fa;
            --border-color: #e2e8f0;
        }
        
        .terms-page,
        .terms-page * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        .terms-page {
            background-color: var(--light-bg);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
        }
        
        .terms-page .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Section */
        .terms-page .terms-header {
            background: linear-gradient(135deg, var(--primary-color), #0f2547);
            color: white;
            padding: 60px 0;
            text-align: center;
            margin-bottom: 40px;
        }
        
        .terms-page .terms-header h1 {
            font-size: 2.8rem;
            margin-bottom: 15px;
            font-weight: 700;
        }
        
        .terms-page .terms-header p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .terms-page .update-date {
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 20px;
            border-radius: 20px;
            display: inline-block;
            margin-top: 20px;
            font-size: 0.9rem;
        }
        
        /* Main Content */
        .terms-page .terms-content {
            background: white;
            border-radius: 10px;
            padding: 50px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            margin-bottom: 50px;
        }
        
        .terms-page .terms-section {
            margin-bottom: 40px;
            padding-bottom: 40px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .terms-page .terms-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .terms-page .section-title {
            color: var(--primary-color);
            font-size: 1.6rem;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--secondary-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .terms-page .section-number {
            background: var(--secondary-color);
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.9rem;
        }
        
        .terms-page .section-content p {
            margin-bottom: 15px;
            color: #4a5568;
        }
        
        .terms-page .section-content ul {
            margin: 15px 0;
            padding-left: 25px;
        }
        
        .terms-page .section-content li {
            margin-bottom: 10px;
            color: #4a5568;
        }
        
        /* Important Notes */
        .terms-page .important-note {
            background: linear-gradient(135deg, #f0f9ff, #e6fffa);
            border-left: 4px solid var(--secondary-color);
            padding: 20px;
            border-radius: 5px;
            margin: 25px 0;
        }
        
        .terms-page .important-note p {
            margin-bottom: 0;
            color: var(--text-color);
            font-weight: 500;
        }
        
        .terms-page .warning-note {
            background: linear-gradient(135deg, #fff5f5, #feebeb);
            border-left: 4px solid #e53e3e;
            padding: 20px;
            border-radius: 5px;
            margin: 25px 0;
        }
        
        /* Contact Section */
        .terms-page .contact-section {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 40px;
            border-radius: 10px;
            text-align: center;
            margin-top: 40px;
        }
        
        .terms-page .contact-section h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: white;
        }
        
        .terms-page .contact-email {
            display: inline-block;
            background: rgba(255, 255, 255, 0.15);
            padding: 12px 30px;
            border-radius: 30px;
            margin-top: 15px;
            font-weight: 600;
            text-decoration: none;
            color: white;
            transition: all 0.3s;
        }
        
        .terms-page .contact-email:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .terms-page .terms-header {
                padding: 40px 0;
            }
            
            .terms-page .terms-header h1 {
                font-size: 2rem;
            }
            
            .terms-page .terms-content {
                padding: 30px 20px;
            }
            
            .terms-page .section-title {
                font-size: 1.4rem;
            }
            
            .terms-page .contact-section {
                padding: 30px 20px;
            }
        }
        
        /* Print Styles */
        @media print {
            .terms-page .contact-section {
                break-inside: avoid;
            }
        }
    
        /* Universal public-page compatibility with shared header/nav/footer */
        .terms-page {
            width: 100%;
            max-width: 100%;
            overflow-x: clip;
        }

        .terms-page *,
        .terms-page *::before,
        .terms-page *::after {
            min-width: 0;
        }

        .terms-page img,
        .terms-page video,
        .terms-page iframe {
            max-width: 100%;
            height: auto;
        }

        .terms-page table {
            max-width: 100%;
        }

        @media (max-width: 768px) {
            .terms-page .container {
                width: 100%;
                max-width: 100%;
                padding-left: 14px;
                padding-right: 14px;
            }

            .terms-page [style*="grid-template-columns"] {
                grid-template-columns: 1fr !important;
            }

            .terms-page [style*="display: flex"] {
                flex-wrap: wrap;
            }

            .terms-page .page-header,
            .terms-page .policy-header,
            .terms-page .terms-header,
            .terms-page .membership-header {
                padding-left: 18px !important;
                padding-right: 18px !important;
                overflow-wrap: anywhere;
            }
        }
