/* Terms & Conditions CSS - COMPLETELY unique variable names to avoid conflicts */

/* Terms & Conditions-specific CSS Variables - UNIQUE NAMES that won't conflict */
:root {
    /* Terms Colors - using terms- prefix */
    --terms-color-primary-blue: #1a365d;
    --terms-color-accent-blue: #3182ce;
    --terms-color-border-lightblue: #bee3f8;
    --terms-color-text-black: #000000;
    --terms-color-bg-verylight: #f7fafc;
    --terms-color-contact-bg-light: #f0f9ff;
    
    /* Terms Font Family - using terms- prefix */
    --terms-font-manrope: 'Manrope', sans-serif;
    --terms-font-weight-regular: 400;
    --terms-font-weight-medium: 500;
    --terms-font-weight-semibold: 600;
    --terms-font-weight-bold: 700;
    
    /* Terms Font Sizes - using terms- prefix */
    --terms-fontsize-base: 1.375rem;
    --terms-fontsize-large: 1.5rem;
    --terms-fontsize-xlarge: 1.625rem;
    --terms-fontsize-xxlarge: 1.875rem;
    --terms-fontsize-xxxlarge: 2.25rem;
    
    /* Terms Spacing - using terms- prefix */
    --terms-space-small: 0.75rem;
    --terms-space-medium: 1rem;
    --terms-space-large: 1.5rem;
    --terms-space-xlarge: 2rem;
    --terms-space-xxlarge: 3rem;
    --terms-space-xxxlarge: 4rem;
    --terms-space-xxxxlarge: 5rem;
    
    /* Terms Layout */
    --terms-maxwidth-content: 1200px;
    --terms-border-radius: 8px;
}

/* Terms & Conditions Page Body */
body.terms-page {
    background-color: var(--terms-color-bg-verylight);
    min-height: 100vh;
}

/* Terms & Conditions Container */
.terms-container {
    max-width: var(--terms-maxwidth-content);
    margin: 0 auto;
    padding: var(--terms-space-xlarge) var(--terms-space-xxlarge);
    font-family: var(--terms-font-manrope);
    color: var(--terms-color-text-black);
    font-size: var(--terms-fontsize-base);
    line-height: 1.6;
    padding-bottom: 100px; /* Space between content and footer */
}

/* Terms & Conditions Header */
.terms-header {
    text-align: center;
    margin-bottom: var(--terms-space-xxxxlarge);
    padding-top: var(--terms-space-xlarge);
}

.terms-header h1 {
    font-size: var(--terms-fontsize-xxxlarge);
    font-weight: var(--terms-font-weight-bold);
    color: var(--terms-color-primary-blue);
    margin: var(--terms-space-xlarge) 0 var(--terms-space-large);
    line-height: 1.2;
}

.terms-subtitle {
    font-size: var(--terms-fontsize-large);
    color: var(--terms-color-text-black);
    max-width: 600px;
    margin: 0 auto;
}

/* Terms & Conditions Sections */
.terms-sections {
    display: grid;
    gap: var(--terms-space-xxlarge);
    margin-bottom: var(--terms-space-xxxlarge);
}

.terms-section {
    background: white;
    border: 1px solid var(--terms-color-border-lightblue);
    border-radius: var(--terms-border-radius);
    padding: var(--terms-space-xlarge);
}

.terms-section-title {
    font-size: var(--terms-fontsize-xxlarge);
    font-weight: var(--terms-font-weight-semibold);
    color: var(--terms-color-primary-blue);
    margin-bottom: var(--terms-space-xlarge);
    padding-bottom: var(--terms-space-medium);
    border-bottom: 1px solid var(--terms-color-border-lightblue);
}

/* Terms Subsections */
.terms-subsections {
    display: grid;
    gap: var(--terms-space-large);
}

.terms-subsection {
    border-left: 3px solid var(--terms-color-accent-blue);
    padding-left: var(--terms-space-large);
    margin-bottom: var(--terms-space-large);
}

.terms-subsection-title {
    font-size: var(--terms-fontsize-large);
    font-weight: var(--terms-font-weight-semibold);
    color: var(--terms-color-primary-blue);
    margin-bottom: var(--terms-space-medium);
    line-height: 1.4;
}

/* Terms Content */
.terms-content {
    color: var(--terms-color-text-black);
    font-size: var(--terms-fontsize-base);
    line-height: 1.7;
}

.terms-content p {
    margin-bottom: var(--terms-space-medium);
}

.terms-content p:last-child {
    margin-bottom: 0;
}

.terms-content strong {
    font-weight: var(--terms-font-weight-semibold);
}

.terms-content ul,
.terms-content ol {
    margin-left: var(--terms-space-large);
    margin-bottom: var(--terms-space-medium);
}

.terms-content li {
    margin-bottom: var(--terms-space-small);
    line-height: 1.6;
}

.terms-content li:last-child {
    margin-bottom: 0;
}

/* Terms Internal Links */
.terms-internal-link {
    color: var(--terms-color-accent-blue);
    font-weight: var(--terms-font-weight-medium);
}

.terms-internal-link:hover {
    color: var(--terms-color-primary-blue);
}

/* Terms Contact Section */
.terms-contact-section {
    background: var(--terms-color-contact-bg-light);
    border: 1px solid var(--terms-color-border-lightblue);
    border-radius: var(--terms-border-radius);
    padding: var(--terms-space-xxlarge);
    text-align: center;
    margin-top: var(--terms-space-xxxlarge);
}

.terms-contact-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.terms-contact-section h2 {
    font-size: var(--terms-fontsize-xxlarge);
    font-weight: var(--terms-font-weight-semibold);
    color: var(--terms-color-primary-blue);
    margin-bottom: var(--terms-space-medium);
}

.terms-contact-content > p {
    color: var(--terms-color-text-black);
    margin-bottom: var(--terms-space-xlarge);
    font-size: var(--terms-fontsize-large);
    text-align: center;
}

.terms-contact-email {
    display: inline-flex;
    align-items: center;
    gap: var(--terms-space-small);
    background: white;
    border: 1px solid var(--terms-color-border-lightblue);
    border-radius: var(--terms-border-radius);
    padding: var(--terms-space-medium) var(--terms-space-large);
    margin-bottom: var(--terms-space-medium);
    justify-content: center;
}

.terms-contact-email svg {
    color: var(--terms-color-accent-blue);
}

.terms-email-link {
    font-size: var(--terms-fontsize-large);
    font-weight: var(--terms-font-weight-medium);
    color: var(--terms-color-primary-blue);
    text-decoration: none;
}

.terms-email-link:hover {
    color: var(--terms-color-accent-blue);
}

/* Terms Back to Top */
.terms-back-to-top {
    position: fixed;
    bottom: var(--terms-space-large);
    right: var(--terms-space-large);
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--terms-color-border-lightblue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 250ms ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    z-index: 1000;
}

.terms-back-to-top.terms-visible {
    opacity: 1;
    visibility: visible;
}

.terms-back-to-top:hover {
    border-color: var(--terms-color-accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1023px) {
    /* Mobile top margin for header space */
    .terms-container {
        margin-top: 70px;
        padding: var(--terms-space-large) calc(var(--terms-space-large) * 0.75);
        padding-bottom: 100px; /* Mobile bottom spacing */
    }
    
    .terms-header h1 {
        font-size: 1.875rem;
    }
    
    .terms-section-title {
        font-size: 1.625rem;
    }
    
    .terms-subsection-title {
        font-size: 1.125rem;
    }
    
    /* Reduced font sizes by 4px (0.25rem) on mobile */
    .terms-subtitle {
        font-size: 1.25rem;
    }
    
    .terms-content {
        font-size: 1.125rem;
    }
    
    .terms-contact-content > p {
        font-size: 1.25rem;
    }
    
    .terms-email-link {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .terms-container {
        margin-top: 70px;
        padding: calc(var(--terms-space-medium) * 0.75) calc(var(--terms-space-medium) * 0.75);
        padding-bottom: 100px; /* Mobile bottom spacing */
    }
    
    .terms-header h1 {
        font-size: 1.625rem;
    }
    
    .terms-section {
        padding: calc(var(--terms-space-medium) * 0.75);
    }
    
    .terms-section-title {
        text-align: center;
        padding-bottom: var(--terms-space-small);
        margin-bottom: calc(var(--terms-space-large) * 0.75);
        font-size: 1.375rem;
    }
    
    .terms-contact-section {
        padding: calc(var(--terms-space-large) * 0.75);
        display: flex;
        justify-content: center;
    }
    
    .terms-contact-content {
        width: 100%;
        align-items: center;
    }
    
    .terms-contact-email {
        flex-direction: row;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: var(--terms-space-small) calc(var(--terms-space-medium) * 0.75);
        margin-bottom: var(--terms-space-small);
    }
    
    .terms-email-link {
        font-size: 1.125rem;
        word-break: break-word;
        text-align: center;
    }
    
    .terms-back-to-top {
        bottom: var(--terms-space-small);
        right: var(--terms-space-small);
        width: 40px;
        height: 40px;
    }
    
    /* Reduce gaps between sections */
    .terms-sections {
        gap: calc(var(--terms-space-xlarge) * 0.75);
        margin-bottom: var(--terms-space-xxlarge);
    }
    
    .terms-subsections {
        gap: calc(var(--terms-space-large) * 0.75);
    }
    
    .terms-subsection-title {
        font-size: 1.125rem;
    }
    
    .terms-subtitle {
        font-size: 1.25rem;
    }
    
    .terms-content {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .terms-contact-email {
        flex-direction: column;
        gap: var(--terms-space-small);
    }
    
    .terms-contact-email svg {
        margin-bottom: 4px;
    }
    
    .terms-email-link {
        text-align: center;
        width: 100%;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .terms-page * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .terms-back-to-top {
        transition: none;
    }
}

/* ===== BROWSER RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}