/**
 * Pages CSS
 * Styles for policy pages, contact and affiliates
 */

/* ========================================
   POLICY PAGES
   ======================================== */

.policy-page {
    padding: 3rem 0 5rem;
    min-height: 70vh;
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gradient-primary, linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05)));
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.policy-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-gold, linear-gradient(135deg, #FFD700, #FFA500));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.policy-icon i {
    font-size: 2rem;
    color: #1a1a2e;
}

.policy-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-gold, linear-gradient(135deg, #FFD700, #FFA500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.policy-subtitle {
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.95rem;
}

/* Policy Layout */
.policy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: flex-start;
}

/* Table of Contents */
.policy-toc {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 100px;
    background: var(--card-bg, rgba(30, 30, 50, 0.8));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.toc-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary, #fff);
}

.toc-title i {
    color: var(--accent-gold, #FFD700);
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 60vh;
    overflow-y: auto;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.toc-link:hover,
.toc-link.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold, #FFD700);
}

.toc-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.toc-link.active .toc-number {
    background: var(--accent-gold, #FFD700);
    color: #1a1a2e;
}

.toc-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Policy Content */
.policy-content {
    background: var(--card-bg, rgba(30, 30, 50, 0.8));
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    scroll-margin-top: 100px;
}

.policy-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold, #FFD700);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.section-content {
    color: var(--text-secondary, #c0c0c0);
    line-height: 1.8;
    font-size: 0.95rem;
}

.section-content ul,
.section-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.section-content li {
    margin-bottom: 0.5rem;
}

.section-content strong {
    color: var(--text-primary, #fff);
}

.section-content a {
    color: var(--accent-gold, #FFD700);
    text-decoration: underline;
}

/* Policy Table */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.policy-table th,
.policy-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.policy-table th {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold, #FFD700);
    font-weight: 600;
}

.policy-table td {
    color: var(--text-secondary, #c0c0c0);
}

.policy-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Footer Note */
.policy-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--accent-gold, #FFD700);
    margin-top: 2rem;
}

.note-icon {
    color: var(--accent-gold, #FFD700);
    font-size: 1.2rem;
}

.note-content p {
    margin: 0;
    color: var(--text-secondary, #c0c0c0);
    font-size: 0.9rem;
}

.note-content a {
    color: var(--accent-gold, #FFD700);
}

/* Back to Top */
.back-to-top-container {
    text-align: center;
    margin-top: 2rem;
}

.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    color: var(--accent-gold, #FFD700);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top-btn:hover {
    background: var(--accent-gold, #FFD700);
    color: #1a1a2e;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-page {
    padding: 3rem 0 5rem;
    min-height: 70vh;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-gold, linear-gradient(135deg, #FFD700, #FFA500));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.contact-icon i {
    font-size: 2rem;
    color: #1a1a2e;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #fff);
}

.contact-subtitle {
    color: var(--text-secondary, #a0a0a0);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--card-bg, rgba(30, 30, 50, 0.8));
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent-gold, #FFD700);
    font-size: 1.2rem;
}

.card-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.card-icon.email {
    background: rgba(234, 67, 53, 0.1);
    color: #EA4335;
}

.card-icon.schedule {
    background: rgba(66, 133, 244, 0.1);
    color: #4285F4;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #fff);
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 0.75rem;
}

.card-label {
    font-size: 0.75rem;
    color: var(--accent-gold, #FFD700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-label.clickable {
    text-decoration: underline;
    cursor: pointer;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Contact Form Section */
.contact-form-section {
    background: var(--card-bg, rgba(30, 30, 50, 0.8));
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #fff);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-header h2 i {
    color: var(--accent-gold, #FFD700);
}

.form-header p {
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.9rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form .form-group.full-width {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #fff);
}

.contact-form label i {
    color: var(--accent-gold, #FFD700);
    font-size: 0.85rem;
}

.contact-form .required {
    color: #ff6b6b;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--input-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    color: var(--text-primary, #fff);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold, #FFD700);
    background: rgba(255, 215, 0, 0.05);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-gold, linear-gradient(135deg, #FFD700, #FFA500));
    border: none;
    border-radius: 12px;
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Live Chat Section */
.live-chat-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-card {
    background: var(--card-bg, rgba(30, 30, 50, 0.8));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.chat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #25D366;
    font-size: 1.5rem;
}

.chat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #fff);
}

.chat-card p {
    font-size: 0.9rem;
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 1.5rem;
}

.btn-chat {
    padding: 0.9rem 1.5rem;
    background: #25D366;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.faq-card,
.social-card {
    background: var(--card-bg, rgba(30, 30, 50, 0.8));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.faq-card h4,
.social-card h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary, #fff);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-card h4 i,
.social-card h4 i {
    color: var(--accent-gold, #FFD700);
}

.faq-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-links li {
    margin-bottom: 0.5rem;
}

.faq-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.faq-links a:hover {
    color: var(--accent-gold, #FFD700);
}

.faq-links i {
    font-size: 0.7rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn:hover {
    transform: translateY(-3px);
}

/* ========================================
   AFFILIATES PAGE
   ======================================== */

.affiliates-page {
    padding: 3rem 0 5rem;
}

/* Hero Section */
.affiliates-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: var(--gradient-primary, linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05)));
    border-radius: 24px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 50px;
    color: var(--accent-gold, #FFD700);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-gold, linear-gradient(135deg, #FFD700, #FFA500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-hero-primary {
    background: var(--gradient-gold, linear-gradient(135deg, #FFD700, #FFA500));
    color: #1a1a2e;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #fff);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover,
.btn-hero-secondary:hover {
    transform: translateY(-3px);
}

.visual-card {
    background: var(--card-bg, rgba(30, 30, 50, 0.9));
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
    min-width: 200px;
}

.visual-card .card-icon {
    font-size: 2.5rem;
    color: var(--accent-gold, #FFD700);
    margin-bottom: 1rem;
}

.visual-card .card-stat {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-gold, #FFD700);
}

.visual-card .card-label {
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.9rem;
}

/* Section Titles */
.affiliates-page .section-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-primary, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.affiliates-page .section-title i {
    color: var(--accent-gold, #FFD700);
}

/* Benefits Grid */
.affiliates-benefits {
    margin-bottom: 4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: var(--card-bg, rgba(30, 30, 50, 0.8));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--accent-gold, #FFD700);
    font-size: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #fff);
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
}

/* How it Works */
.affiliates-how-it-works {
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--card-bg, rgba(30, 30, 50, 0.5));
    border-radius: 24px;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step {
    background: var(--card-bg, rgba(30, 30, 50, 0.9));
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    min-width: 180px;
    max-width: 200px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-gold, linear-gradient(135deg, #FFD700, #FFA500));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #fff);
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0a0);
}

.step-arrow {
    color: var(--accent-gold, #FFD700);
    font-size: 1.5rem;
}

/* Commission Cards */
.affiliates-commissions {
    margin-bottom: 4rem;
}

.commission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.commission-card {
    background: var(--card-bg, rgba(30, 30, 50, 0.8));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    transition: all 0.3s ease;
}

.commission-card.highlighted {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.05);
}

.commission-header {
    margin-bottom: 1rem;
}

.commission-header i {
    font-size: 2rem;
    color: var(--accent-gold, #FFD700);
    margin-bottom: 0.5rem;
}

.commission-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.commission-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold, #FFD700);
    margin-bottom: 0.5rem;
}

.commission-card p {
    font-size: 0.9rem;
    color: var(--text-secondary, #a0a0a0);
}

/* CTA Section */
.affiliates-cta {
    padding: 4rem;
    background: var(--gradient-gold, linear-gradient(135deg, #FFD700, #FFA500));
    border-radius: 24px;
    text-align: center;
    margin-bottom: 4rem;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
}

.btn-cta {
    padding: 1rem 2rem;
    background: #1a1a2e;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.affiliates-faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg, rgba(30, 30, 50, 0.8));
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-gold, #FFD700);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .policy-layout {
        grid-template-columns: 1fr;
    }

    .policy-toc {
        display: none;
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .commission-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .affiliates-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .visual-card {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .policy-page,
    .contact-page,
    .affiliates-page {
        padding: 2rem 0 4rem;
    }

    .policy-title,
    .contact-title,
    .hero-title {
        font-size: 1.8rem;
    }

    .policy-content {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .benefits-grid,
    .commission-cards {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step {
        width: 100%;
        max-width: 100%;
    }

    .affiliates-cta {
        padding: 2.5rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .affiliates-page .section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {

    .policy-icon,
    .contact-icon {
        width: 60px;
        height: 60px;
    }

    .policy-icon i,
    .contact-icon i {
        font-size: 1.5rem;
    }

    .policy-header,
    .contact-header {
        padding: 1.5rem;
    }

    .affiliates-hero {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .visual-card .card-stat {
        font-size: 2.5rem;
    }
}

/* ========================================
   MOBILE OVERFLOW FIXES
   ======================================== */

/* Root level overflow prevention */
html,
body {
    overflow-x: hidden;
}

/* Global overflow prevention */
.policy-page,
.contact-page,
.affiliates-page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.policy-page .container,
.contact-page .container,
.affiliates-page .container {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.policy-page *,
.contact-page *,
.affiliates-page * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Content text handling - force word wrap */
.section-content,
.section-content p,
.section-content li,
.note-content p,
.card-text,
.chat-card p,
.benefit-card p,
.step-content p,
.commission-card p,
.faq-item p,
.hero-subtitle,
.policy-subtitle,
.contact-subtitle {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Policy table mobile fix */
@media (max-width: 768px) {
    .policy-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.8rem;
    }

    .policy-table th,
    .policy-table td {
        padding: 0.5rem;
        white-space: nowrap;
    }

    /* Force container width */
    .policy-page .container,
    .contact-page .container,
    .affiliates-page .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Better content padding on mobile */
    .policy-content {
        padding: 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    .section-content {
        font-size: 0.9rem;
        line-height: 1.7;
        width: 100%;
    }

    .section-content ul,
    .section-content ol {
        padding-left: 1.2rem;
        margin-left: 0;
    }

    /* Section header fix for mobile */
    .section-header {
        flex-wrap: wrap;
    }

    .section-title {
        word-break: break-word;
    }

    /* Policy header tighter on mobile */
    .policy-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    .policy-title {
        font-size: 1.5rem;
        word-break: break-word;
    }

    /* Footer note mobile fix */
    .policy-footer-note {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {

    .policy-page .container,
    .contact-page .container,
    .affiliates-page .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .policy-header {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .policy-content {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .policy-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .section-number {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-content {
        font-size: 0.85rem;
    }

    .back-to-top-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .policy-icon i {
        font-size: 1.2rem;
    }
}

/* ============================================
   LIGHT THEME SUPPORT - PREMIUM EDITION
   ============================================ */

/* Light Theme Variables for Policy Pages */
[data-theme="light"] {
    --card-bg: #ffffff;
    --border-color: rgba(15, 23, 42, 0.12);
    --text-primary: #0a1628;
    --text-secondary: #374151;
    --accent-gold: #b8860b;
    --gradient-gold: linear-gradient(135deg, #b8860b, #a67c00);
    --gradient-primary: linear-gradient(135deg, rgba(184, 134, 11, 0.08), rgba(167, 130, 0, 0.04));
    --input-bg: #f4f6f9;
}

/* Policy Page Container - Light */
[data-theme="light"] .policy-page,
[data-theme="light"] .contact-page,
[data-theme="light"] .affiliates-page {
    background: #eef2f6;
}

/* Policy Header - Light Premium */
[data-theme="light"] .policy-header {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1), rgba(167, 130, 0, 0.05));
    border: 1px solid rgba(184, 134, 11, 0.2);
}

[data-theme="light"] .policy-title {
    background: linear-gradient(135deg, #b8860b, #a67c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .policy-subtitle {
    color: #4b5563;
}

/* Table of Contents (TOC) - Light Premium */
[data-theme="light"] .toc-sticky {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .toc-title {
    color: #0a1628;
}

[data-theme="light"] .toc-title i {
    color: #b8860b;
}

[data-theme="light"] .toc-link {
    color: #374151;
}

[data-theme="light"] .toc-link:hover,
[data-theme="light"] .toc-link.active {
    background: rgba(184, 134, 11, 0.1);
    color: #b8860b;
}

[data-theme="light"] .toc-number {
    background: #f4f6f9;
    color: #374151;
}

[data-theme="light"] .toc-link.active .toc-number {
    background: linear-gradient(135deg, #b8860b, #a67c00);
    color: #ffffff;
}

/* Policy Content - Light Premium */
[data-theme="light"] .policy-content {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .policy-section {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .section-number {
    color: #b8860b;
}

[data-theme="light"] .section-title {
    color: #0a1628;
}

[data-theme="light"] .section-content {
    color: #374151;
}

[data-theme="light"] .section-content strong {
    color: #0a1628;
}

[data-theme="light"] .section-content a {
    color: #b8860b;
}

/* Policy Table - Light */
[data-theme="light"] .policy-table th,
[data-theme="light"] .policy-table td {
    border: 1px solid rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .policy-table th {
    background: rgba(184, 134, 11, 0.08);
    color: #b8860b;
}

[data-theme="light"] .policy-table td {
    color: #374151;
}

[data-theme="light"] .policy-table tr:hover td {
    background: rgba(184, 134, 11, 0.03);
}

/* Policy Footer Note - Light */
[data-theme="light"] .policy-footer-note {
    background: rgba(184, 134, 11, 0.05);
    border-left: 4px solid #b8860b;
}

[data-theme="light"] .note-icon {
    color: #b8860b;
}

[data-theme="light"] .note-content p {
    color: #374151;
}

[data-theme="light"] .note-content a {
    color: #b8860b;
}

/* Back to Top Button - Light */
[data-theme="light"] .back-to-top-btn {
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: #b8860b;
}

[data-theme="light"] .back-to-top-btn:hover {
    background: linear-gradient(135deg, #b8860b, #a67c00);
    color: #ffffff;
}

/* Contact Page - Light Premium */
[data-theme="light"] .contact-title {
    color: #0a1628;
}

[data-theme="light"] .contact-subtitle {
    color: #4b5563;
}

/* Contact Cards - Light */
[data-theme="light"] .contact-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .contact-card:hover {
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .card-icon {
    background: rgba(184, 134, 11, 0.1);
    color: #b8860b;
}

[data-theme="light"] .card-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #059669;
}

[data-theme="light"] .card-icon.email {
    background: rgba(234, 67, 53, 0.1);
    color: #dc2626;
}

[data-theme="light"] .card-icon.schedule {
    background: rgba(66, 133, 244, 0.1);
    color: #2563eb;
}

[data-theme="light"] .card-title {
    color: #0a1628;
}

[data-theme="light"] .card-text {
    color: #4b5563;
}

[data-theme="light"] .card-label {
    color: #b8860b;
}

/* Contact Form Section - Light */
[data-theme="light"] .contact-form-section {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .form-header h2 {
    color: #0a1628;
}

[data-theme="light"] .form-header h2 i {
    color: #b8860b;
}

[data-theme="light"] .form-header p {
    color: #4b5563;
}

[data-theme="light"] .contact-form label {
    color: #0a1628;
}

[data-theme="light"] .contact-form label i {
    color: #b8860b;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: #f4f6f9;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0a1628;
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
    border-color: #b8860b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder {
    color: #6b7280;
}

[data-theme="light"] .btn-submit {
    background: linear-gradient(135deg, #b8860b, #a67c00);
    color: #ffffff;
}

[data-theme="light"] .btn-submit:hover {
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.3);
}

/* Live Chat Section - Light */
[data-theme="light"] .chat-card,
[data-theme="light"] .faq-card,
[data-theme="light"] .social-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .chat-icon {
    background: rgba(37, 211, 102, 0.1);
}

[data-theme="light"] .chat-card h3 {
    color: #0a1628;
}

[data-theme="light"] .chat-card p {
    color: #4b5563;
}

[data-theme="light"] .faq-card h4,
[data-theme="light"] .social-card h4 {
    color: #0a1628;
}

[data-theme="light"] .faq-card h4 i,
[data-theme="light"] .social-card h4 i {
    color: #b8860b;
}

[data-theme="light"] .faq-links a {
    color: #374151;
}

[data-theme="light"] .faq-links a:hover {
    color: #b8860b;
}

/* Affiliates Page - Light Premium */
[data-theme="light"] .affiliates-hero {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.08), rgba(167, 130, 0, 0.04));
    border: 1px solid rgba(184, 134, 11, 0.2);
}

[data-theme="light"] .hero-badge {
    background: rgba(184, 134, 11, 0.12);
    color: #b8860b;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #b8860b, #a67c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-subtitle {
    color: #4b5563;
}

[data-theme="light"] .btn-hero-primary {
    background: linear-gradient(135deg, #b8860b, #a67c00);
    color: #ffffff;
}

[data-theme="light"] .btn-hero-secondary {
    background: rgba(15, 23, 42, 0.05);
    color: #0a1628;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .btn-hero-secondary:hover {
    border-color: #b8860b;
    color: #b8860b;
}

[data-theme="light"] .visual-card {
    background: #ffffff;
    border: 2px solid rgba(184, 134, 11, 0.25);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .visual-card .card-icon {
    color: #b8860b;
}

[data-theme="light"] .visual-card .card-stat {
    color: #b8860b;
}

[data-theme="light"] .visual-card .card-label {
    color: #4b5563;
}

/* Affiliates Section Titles - Light */
[data-theme="light"] .affiliates-page .section-title {
    color: #0a1628;
}

[data-theme="light"] .affiliates-page .section-title i {
    color: #b8860b;
}