/* Root Variables - Black Theme */
:root {
    --primary-color: #212529;
    --secondary-color: #333;
    --accent-color: #212529;
    --accent-secondary: #000000;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #212529 0%, #000000 100%);
}

/* Full Width Wrapper */
.terms-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Hero Section */
.terms-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

.terms-title {
    font-size: 64px;
    font-weight: 300;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.last-updated {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.accent-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, white, transparent);
    margin: 0 auto;
    opacity: 0;
    animation: fadeInScale 0.8s ease 0.4s forwards;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    width: 100%;
}

.content-section:nth-child(even) {
    background-color: var(--bg-light);
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Content Typography */
.content-block {
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #000000, #333333);
    border-radius: 2px;
}

/* Numbered Sections */
.numbered-section {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
}

.section-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #000000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.content-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.content-text a {
    color: #000000;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

.content-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.content-text a:hover {
    color: var(--primary-color);
}

.content-text a:hover::after {
    width: 100%;
}

/* List Styles */
.terms-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.terms-list li {
    position: relative;
    padding: 15px 0 15px 40px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    transition: var(--transition);
    border-bottom: 1px solid #eee;
}

.terms-list li:last-child {
    border-bottom: none;
}

.terms-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 15px;
    color: #000000;
    font-size: 20px;
    font-weight: bold;
}

.terms-list li:hover {
    padding-left: 50px;
    background: rgba(33, 37, 41, 0.05);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.1), rgba(33, 37, 41, 0.05));
    border-left: 4px solid #000000;
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 10px 10px 0;
}

.highlight-box-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.highlight-box-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Important Section */
.important-section {
    background: #fff;
    border: 2px solid #000000;
    border-radius: 20px;
    padding: 40px;
    margin: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.important-section::before {
    content: '!';
    position: absolute;
    top: -20px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #000000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
}

.important-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.important-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 80px 0;
    margin-top: 80px;
    text-align: center;
    color: white;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.contact-title {
    font-size: 48px;
    font-weight: 300;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-text {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000000;
    color: white;
    padding: 18px 50px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: #333333;
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* RTL Styles */
[dir="rtl"] .terms-title {
    letter-spacing: normal;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .numbered-section {
    padding-left: 0;
    padding-right: 60px;
}

[dir="rtl"] .section-number {
    left: auto;
    right: 0;
}

[dir="rtl"] .terms-list li {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .terms-list li::before {
    left: auto;
    right: 0;
    content: '←';
}

[dir="rtl"] .terms-list li:hover {
    padding-left: 0;
    padding-right: 50px;
}

[dir="rtl"] .highlight-box {
    border-left: none;
    border-right: 4px solid #000000;
    border-radius: 10px 0 0 10px;
}

[dir="rtl"] .important-section::before {
    right: auto;
    left: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-hero {
        padding: 80px 0;
    }

    .terms-title {
        font-size: 42px;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 28px;
    }

    .content-section {
        padding: 60px 0;
    }

    .numbered-section {
        padding-left: 50px;
    }

    .important-section {
        padding: 30px 20px;
    }

    .contact-title {
        font-size: 36px;
    }

    .contact-button {
        width: 100%;
        max-width: 400px;
        justify-content: center;
        padding: 16px 30px;
        font-size: 16px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .terms-title {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 24px;
    }

    .content-text {
        font-size: 16px;
    }

    .numbered-section {
        padding-left: 0;
        padding-top: 50px;
    }

    .section-number {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 20px;
    }

    .contact-button {
        padding: 15px 40px;
        font-size: 16px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-title {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .contact-text {
        font-size: 18px;
        padding: 0 15px;
    }

    .contact-button {
        max-width: 320px;
        padding: 14px 24px;
        font-size: 15px;
        letter-spacing: 0;
    }

    .contact-button i {
        font-size: 16px;
    }
}

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

    .contact-title {
        font-size: 28px;
    }

    .contact-text {
        font-size: 16px;
    }

    .contact-button {
        max-width: 280px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .contact-button i {
        font-size: 14px;
    }
}
