/* Terms Hero Section */
.terms-hero {
    min-height: 50vh;
    padding: 180px 0 100px;
    background: 
        radial-gradient(circle at 20% 150%, rgba(222, 39, 31, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% -50%, rgba(202, 180, 137, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.terms-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: 
        linear-gradient(120deg, transparent 45%, rgba(222, 39, 31, 0.03) 45%, rgba(222, 39, 31, 0.03) 55%, transparent 55%),
        linear-gradient(-120deg, transparent 45%, rgba(202, 180, 137, 0.03) 45%, rgba(202, 180, 137, 0.03) 55%, transparent 55%);
    background-size: 60px 60px;
    animation: patternFloat 60s linear infinite;
}

.terms-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="1" fill="%23de271f" fill-opacity="0.05"/></svg>');
    background-size: 20px 20px;
    opacity: 0.5;
    animation: dotFloat 40s linear infinite;
    pointer-events: none;
}

.terms-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.terms-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-red);
    color: white;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease forwards;
    box-shadow: 0 10px 20px rgba(222, 39, 31, 0.15);
}

.terms-header h1 {
    font-size: 3.5rem;
    color: var(--neutral-black);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Anek Latin', sans-serif;
    background: linear-gradient(135deg, var(--neutral-black), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 0.8s ease forwards 0.2s;
}

.terms-header p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(29, 29, 27, 0.8);
    margin-bottom: 0;
    animation: slideUp 0.8s ease forwards 0.4s;
}

/* Terms Content */
.terms-content {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff, rgba(222, 39, 31, 0.05));
    position: relative;
}

.terms-card {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(222, 39, 31, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(222, 39, 31, 0.1);
    margin-bottom: 3rem;
}

.terms-section {
    margin-bottom: 4rem;
    position: relative;
    padding-left: 2rem;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-red), transparent);
    border-radius: 3px;
}

.terms-section h2 {
    font-size: 2rem;
    color: var(--neutral-black);
    margin-bottom: 1.5rem;
    font-family: 'Anek Latin', sans-serif;
}

.terms-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(29, 29, 27, 0.8);
    margin-bottom: 1.5rem;
}

.terms-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-section ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(29, 29, 27, 0.8);
}

.terms-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
}

.terms-footer {
    text-align: center;
}

.terms-footer p {
    color: rgba(29, 29, 27, 0.6);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.terms-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.terms-actions .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.terms-actions .btn i {
    font-size: 1.25rem;
}

.terms-actions .btn:hover {
    transform: translateY(-2px);
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .accessibility-fab,
    .whatsapp-fab,
    .back-to-top,
    .terms-actions {
        display: none !important;
    }

    .terms-hero {
        padding: 2rem 0;
        min-height: auto;
        background: none;
    }

    .terms-content {
        padding: 2rem 0;
        background: none;
    }

    .terms-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .terms-section {
        page-break-inside: avoid;
    }
}

/* Animations */
@keyframes patternFloat {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 60px 60px, 60px 60px;
    }
}

@keyframes dotFloat {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .terms-hero {
        padding: 140px 0 60px;
    }

    .terms-header h1 {
        font-size: 2.5rem;
    }

    .terms-header p {
        font-size: 1.1rem;
    }

    .terms-card {
        padding: 2rem;
    }

    .terms-section {
        padding-left: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .terms-header h1 {
        font-size: 2rem;
    }

    .terms-card {
        padding: 1.5rem;
    }

    .terms-section {
        padding-left: 1rem;
    }

    .terms-actions {
        flex-direction: column;
    }

    .terms-actions .btn {
        width: 100%;
        justify-content: center;
    }
}