/* ==========================================
   terms-conditions.css - Premium Terms & Conditions Page
   ========================================== */

:root {
    --terms-primary: #2196F3;
    --terms-primary-dark: #1976D2;
    --terms-navy: #0D1B2A;
    --terms-navy-dark: #070f17;
    --terms-gray-light: #F5F7FA;
    --terms-gray-medium: #6B7280;
    --terms-green: #10B981;
    --terms-orange: #F59E0B;
    --terms-white: #FFFFFF;
    --terms-gradient: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    --terms-shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.08);
    --terms-shadow-md: 0 4px 16px rgba(13, 27, 42, 0.12);
    --terms-shadow-lg: 0 8px 32px rgba(13, 27, 42, 0.16);
    --terms-shadow-xl: 0 12px 48px rgba(13, 27, 42, 0.2);
    --terms-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.terms-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--terms-navy-dark) 0%, var(--terms-navy) 100%);
    padding: 140px 0 100px;
    overflow: hidden;
}

.terms-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.7);
    z-index: 0;
}

.terms-animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.terms-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.15;
    animation: termsFloat 25s ease-in-out infinite;
}

.terms-shape-1 {
    width: 450px;
    height: 450px;
    background: var(--terms-gradient);
    top: -225px;
    left: -225px;
}

.terms-shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    bottom: -250px;
    right: -250px;
    animation-delay: 8s;
}

.terms-shape-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    top: 50%;
    right: 10%;
    animation-delay: 16s;
}

@keyframes termsFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(50px, -50px) rotate(120deg); }
    66% { transform: translate(-40px, 40px) rotate(240deg); }
}

.terms-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.terms-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.terms-breadcrumb a {
    color: var(--terms-primary);
    text-decoration: none;
    transition: var(--terms-transition);
}

.terms-breadcrumb a:hover {
    color: var(--terms-white);
}

.terms-breadcrumb i {
    font-size: 10px;
}

.terms-hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: var(--terms-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--terms-white);
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.4);
    animation: termsPulse 3s ease-in-out infinite;
}

@keyframes termsPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.terms-hero-title {
    font-size: 56px;
    font-weight: 900;
    color: var(--terms-white);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.terms-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 24px;
}

.terms-last-updated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--terms-white);
    font-size: 14px;
    font-weight: 600;
}

.terms-last-updated i {
    color: var(--terms-orange);
}

/* ==========================================
   TABLE OF CONTENTS - COMPACT DESIGN
   ========================================== */

.terms-toc-section {
    padding: 60px 0 50px;
    background: var(--terms-white);
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.terms-toc-card {
    background: var(--terms-white);
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: var(--terms-shadow-lg);
    border: 2px solid var(--terms-gray-light);
}

.terms-toc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.terms-toc-header i {
    font-size: 24px;
    color: var(--terms-primary);
}

.terms-toc-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--terms-navy);
    margin: 0;
}

.terms-toc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.terms-toc-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--terms-gray-light);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--terms-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--terms-transition);
    text-align: center;
}

.terms-toc-item:hover {
    background: var(--terms-white);
    border-color: var(--terms-primary);
    transform: translateY(-3px);
    box-shadow: var(--terms-shadow-md);
    color: var(--terms-primary);
}

.terms-toc-item i:first-child {
    color: var(--terms-primary);
    font-size: 16px;
    flex-shrink: 0;
}

/* ==========================================
   CONTENT LAYOUT
   ========================================== */

.terms-content-section {
    padding: 60px 0 120px;
    background: var(--terms-gray-light);
}

.terms-content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.terms-sidebar {
    position: relative;
}

.terms-sidebar-sticky {
    position: sticky;
    top: 120px;
    background: var(--terms-white);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: var(--terms-shadow-lg);
}

.terms-sidebar-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--terms-navy);
    margin-bottom: 20px;
}

.terms-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.terms-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--terms-gray-medium);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--terms-transition);
    border-left: 3px solid transparent;
}

.terms-sidebar-link:hover,
.terms-sidebar-link.active {
    background: var(--terms-gray-light);
    color: var(--terms-primary);
    border-left-color: var(--terms-primary);
}

.terms-sidebar-link i {
    font-size: 16px;
    flex-shrink: 0;
}

.terms-sidebar-contact {
    padding-top: 24px;
    border-top: 2px solid var(--terms-gray-light);
}

.terms-sidebar-contact h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--terms-navy);
    margin-bottom: 8px;
}

.terms-sidebar-contact p {
    font-size: 14px;
    color: var(--terms-gray-medium);
    margin-bottom: 16px;
}

.terms-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--terms-gradient);
    color: var(--terms-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
    transition: var(--terms-transition);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.terms-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
    color: var(--terms-white);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.terms-main-content {
    background: transparent;
}

/* Important Notice Card */
.terms-notice-card {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 40px;
}

.terms-notice-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--terms-white);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.terms-notice-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--terms-navy);
    margin-bottom: 8px;
}

.terms-notice-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--terms-gray-medium);
    margin: 0;
}

.terms-section {
    background: var(--terms-white);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--terms-shadow-md);
    scroll-margin-top: 120px;
}

.terms-section-header {
    display: flex;
    gap: 24px;
    margin-bottom: 35px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--terms-gray-light);
}

.terms-section-icon {
    width: 70px;
    height: 70px;
    background: var(--terms-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--terms-white);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.3);
}

.terms-section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--terms-navy);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.terms-section-summary {
    font-size: 16px;
    color: var(--terms-gray-medium);
    margin: 0;
    font-weight: 500;
}

.terms-section-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.terms-content-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--terms-navy);
    margin: 0;
}

.terms-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--terms-gray-medium);
    margin: 0;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--terms-gray-medium);
}

.terms-list li i {
    color: var(--terms-green);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.terms-contact-section {
    margin-top: 40px;
}

.terms-contact-card {
    background: linear-gradient(135deg, var(--terms-navy) 0%, #1a2942 100%);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--terms-shadow-xl);
    color: var(--terms-white);
}

.terms-contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--terms-primary);
}

.terms-contact-card h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 16px;
}

.terms-contact-card > p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 32px;
}

.terms-contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.terms-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.terms-contact-item i {
    font-size: 28px;
    color: var(--terms-primary);
}

.terms-contact-item strong {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.terms-contact-item a,
.terms-contact-item span {
    font-size: 16px;
    color: var(--terms-white);
    text-decoration: none;
    font-weight: 600;
}

.terms-contact-item a:hover {
    color: var(--terms-primary);
}

.terms-contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--terms-white);
    color: var(--terms-navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 14px;
    transition: var(--terms-transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.terms-contact-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   ACCEPTANCE CARD
   ========================================== */

.terms-acceptance-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 32px;
    margin-top: 40px;
}

.terms-acceptance-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.terms-acceptance-content i {
    font-size: 48px;
    color: var(--terms-green);
}

.terms-acceptance-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--terms-navy);
    margin: 0;
}

.terms-acceptance-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--terms-gray-medium);
    max-width: 700px;
    margin: 0;
}

/* ==========================================
   ACTIONS SECTION
   ========================================== */

.terms-actions-section {
    padding: 60px 0 120px;
    background: var(--terms-gray-light);
}

.terms-actions-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: var(--terms-white);
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: var(--terms-shadow-lg);
}

.terms-actions-content h3 {
    font-size: 26px;
    font-weight: 900;
    color: var(--terms-navy);
    margin-bottom: 8px;
}

.terms-actions-content p {
    font-size: 16px;
    color: var(--terms-gray-medium);
    margin: 0;
}

.terms-actions-buttons {
    display: flex;
    gap: 16px;
}

.terms-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--terms-transition);
}

.terms-btn-print {
    background: var(--terms-gray-light);
    color: var(--terms-navy);
    border: 2px solid var(--terms-gray-light);
}

.terms-btn-print:hover {
    background: var(--terms-navy);
    color: var(--terms-white);
    border-color: var(--terms-navy);
}

.terms-btn-download {
    background: var(--terms-gradient);
    color: var(--terms-white);
    border: 2px solid transparent;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.terms-btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1200px) {
    .terms-content-layout {
        grid-template-columns: 250px 1fr;
        gap: 40px;
    }

    .terms-toc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .terms-hero-title {
        font-size: 44px;
    }

    .terms-content-layout {
        grid-template-columns: 1fr;
    }

    .terms-sidebar {
        display: none;
    }

    .terms-toc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .terms-contact-details {
        grid-template-columns: 1fr;
    }

    .terms-actions-card {
        flex-direction: column;
        text-align: center;
    }

    .terms-actions-buttons {
        width: 100%;
        flex-direction: column;
    }

    .terms-action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 120px 0 80px;
    }

    .terms-hero-title {
        font-size: 36px;
    }

    .terms-hero-subtitle {
        font-size: 17px;
    }

    .terms-toc-card {
        padding: 28px 24px;
    }

    .terms-toc-header h2 {
        font-size: 20px;
    }

    .terms-toc-header i {
        font-size: 20px;
    }

    .terms-section {
        padding: 35px 28px;
    }

    .terms-section-header {
        flex-direction: column;
    }

    .terms-section-title {
        font-size: 26px;
    }

    .terms-contact-card {
        padding: 35px 28px;
    }

    .terms-contact-card h3 {
        font-size: 26px;
    }

    .terms-actions-card {
        padding: 32px 24px;
    }

    .terms-notice-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .terms-hero-title {
        font-size: 28px;
    }

    .terms-toc-header i {
        font-size: 18px;
    }

    .terms-toc-header h2 {
        font-size: 18px;
    }

    .terms-toc-grid {
        grid-template-columns: 1fr;
    }

    .terms-toc-item {
        font-size: 14px;
        padding: 14px 18px;
    }

    .terms-section-title {
        font-size: 22px;
    }

    .terms-subtitle {
        font-size: 18px;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .terms-hero,
    .terms-toc-section,
    .terms-actions-section {
        background: var(--terms-white) !important;
    }

    .terms-animated-bg,
    .terms-hero-overlay {
        display: none !important;
    }

    .terms-sidebar,
    .terms-actions-buttons,
    .terms-contact-cta {
        display: none !important;
    }

    .terms-content-layout {
        grid-template-columns: 1fr;
    }

    .terms-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .terms-hero-title,
    .terms-section-title {
        color: var(--terms-navy) !important;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.terms-toc-item:focus,
.terms-sidebar-link:focus,
.terms-contact-btn:focus,
.terms-action-btn:focus {
    outline: 3px solid var(--terms-primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}