/* ========================================
   TERMS & CONDITIONS PAGE STYLES
   Save as: terms.css
   ======================================== */

/* Main Container */
.terms-main {
    padding: 3rem 0;
    margin-top: 120px;
    min-height: calc(100vh - 200px);
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 68, 68, 0.1);
}

/* Header Section */
.terms-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 68, 68, 0.3);
}

.terms-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.terms-subtitle {
    color: #999;
    font-size: 0.95rem;
}

/* Table of Contents */
.table-of-contents {
    background: rgba(255, 0, 0, 0.05);
    border-left: 4px solid #ff0000;
    padding: 1.5rem;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.table-of-contents h3 {
    color: #ff4444;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin: 0.75rem 0;
}

.table-of-contents a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    padding: 0.25rem 0;
}

.table-of-contents a:hover {
    color: #ff4444;
    transform: translateX(5px);
}

/* Terms Content */
.terms-content {
    color: #cccccc;
    line-height: 1.8;
}

.terms-section {
    margin-bottom: 3rem;
    scroll-margin-top: 140px;
}

.terms-section h2 {
    color: #ff4444;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 68, 68, 0.2);
}

.terms-section h3 {
    color: #ff6666;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
}

.terms-section p {
    margin-bottom: 1rem;
    color: #cccccc;
}

.terms-section ul {
    margin: 1rem 0 1rem 2rem;
    list-style-type: disc;
}

.terms-section li {
    margin: 0.5rem 0;
    color: #cccccc;
}

.terms-section a {
    color: #ff4444;
    text-decoration: none;
    transition: color 0.3s;
}

.terms-section a:hover {
    color: #ff6666;
    text-decoration: underline;
}

/* Contact Info Box */
.contact-info {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info strong {
    color: #ff4444;
    font-size: 1.1rem;
}

/* Agreement Footer */
.agreement-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 68, 68, 0.3);
}

.agreement-box {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(204, 0, 0, 0.1));
    border: 2px solid #ff0000;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.agreement-box p {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.accept-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.accept-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

.accept-btn:active {
    transform: translateY(0);
}

/* Footer Active Link */
.footer-link.active {
    color: #ff4444;
    font-weight: 600;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Highlight Animation for Sections */
.terms-section:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% {
        background: rgba(255, 0, 0, 0.1);
    }
    100% {
        background: transparent;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .chat-btn,
    .chat-container,
    .table-of-contents,
    .agreement-footer {
        display: none;
    }

    .terms-main {
        margin-top: 0;
    }

    .terms-container {
        background: white;
        border: none;
        box-shadow: none;
    }

    .terms-title,
    .terms-section h2,
    .terms-section h3 {
        color: #000;
        background: none;
        -webkit-text-fill-color: initial;
    }

    .terms-content,
    .terms-section p,
    .terms-section li {
        color: #000;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-main {
        margin-top: 180px;
        padding: 2rem 0;
    }

    .terms-container {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .terms-title {
        font-size: 2rem;
    }

    .terms-section h2 {
        font-size: 1.5rem;
    }

    .terms-section h3 {
        font-size: 1.2rem;
    }

    .table-of-contents {
        padding: 1rem;
    }

    .agreement-box {
        padding: 1.5rem;
    }

    .accept-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .terms-section ul {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .terms-container {
        padding: 1rem;
    }

    .terms-title {
        font-size: 1.75rem;
    }

    .terms-section h2 {
        font-size: 1.3rem;
    }

    .agreement-box p {
        font-size: 1rem;
    }
}

/* Loading Animation */
.terms-container {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top Button (Optional Enhancement) */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

/* Section Numbers */
.terms-section h2::before {
    content: "§ ";
    color: #ff0000;
    font-weight: bold;
}

/* Enhanced List Styling */
.terms-section ul li::marker {
    color: #ff4444;
}

/* Emphasis Boxes */
.emphasis-box {
    background: rgba(255, 0, 0, 0.05);
    border-left: 4px solid #ff0000;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.emphasis-box p {
    margin: 0;
    font-weight: 500;
}

/* Accessibility */
.terms-section:focus {
    outline: 2px solid #ff4444;
    outline-offset: 4px;
}