/* Terms of Service Page - New Design */

:root {
    --terms-gold: #e8ba00;
    --terms-gold-lt: #fff9e6;
    --terms-gold-bg: #E8BA001A;
    --terms-text-muted: #666;
    --terms-bg-gray: #f8f9fa;
}

body {
    background-color: #ffffff;
}

@media (min-width: 1200px) {
    .container {
        max-width: 90% !important;
    }
}

.terms-wrapper {
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Hero Section */
.terms-hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-family: 'Rubik', sans-serif;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.terms-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.terms-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Rubik', sans-serif;
}

.terms-hero-subtitle {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: 300;
    font-family: 'Rubik', sans-serif;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Terms Content Section */
.terms-content-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.terms-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.terms-intro p {
    font-size: 1.15rem;
    color: var(--terms-text-muted);
    line-height: 1.8;
}

.terms-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.term-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.term-card::before {
    content: "";
    position: absolute;
    top: 20px;
    width: 4px;
    height: 40px;
    background-color: var(--terms-gold);
    border-radius: 2px;
}

html[dir="rtl"] .term-card::before {
    right: 0;
}

html[dir="ltr"] .term-card::before {
    left: 0;
}

.term-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

.term-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.term-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--terms-gold-lt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--terms-gold);
}

.term-title {
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
    color: #1a1a2e;
}

.term-text {
    color: var(--terms-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

html[dir="rtl"] .term-card {
    text-align: right;
}

html[dir="ltr"] .term-card {
    text-align: left;
}

/* Highlight Card (final acknowledgment) */
.term-card-highlight {
    background: var(--terms-gold-bg);
    border: 1.5px solid transparent;
    background-image: linear-gradient(var(--terms-gold-bg), var(--terms-gold-bg)),
        linear-gradient(180deg, rgb(234 193 55 / 22%) 0%, #e8ba00f2 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    text-align: center;
    padding: 50px 40px;
}

.term-card-highlight::before {
    display: none;
}

.term-card-highlight .term-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    max-width: 900px;
    margin: 0 auto;
}

/* Contact CTA Section */
.terms-cta {
    padding: 0 0 100px;
    background-color: #ffffff;
}

.terms-cta-box {
    background: var(--terms-gold-bg);
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
}

.terms-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.terms-cta-text {
    color: var(--terms-text-muted);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.btn-terms-contact {
    background: linear-gradient(180deg, #FFFFFF -32.14%, #E8BA00 135.71%);
    color: #000;
    border: none;
    padding: 16px 45px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(232, 186, 0, 0.25);
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.btn-terms-contact:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(232, 186, 0, 0.3);
    color: #000 !important;
}

/* Responsive */
@media (max-width: 991px) {
    .terms-content-section {
        padding: 60px 0;
    }

    .term-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        height: 380px;
    }

    .terms-hero-title {
        font-size: 2.2rem;
    }

    .terms-hero-subtitle {
        font-size: 1.15rem;
    }

    .terms-content-section {
        padding: 50px 0;
    }

    .term-card {
        padding: 28px 24px;
    }

    .terms-cta {
        padding: 0 0 60px;
    }

    .terms-cta-box {
        padding: 40px 24px;
    }

    .terms-cta-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .terms-hero {
        height: 340px;
    }

    .terms-hero-title {
        font-size: 1.8rem;
    }

    .terms-hero-subtitle {
        font-size: 1rem;
    }

    .term-card {
        padding: 24px 18px;
    }

    .term-card-highlight {
        padding: 36px 20px;
    }

    .term-card-highlight .term-text {
        font-size: 1.05rem;
    }
}
