/* Terms Page Styles */

body {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('../images/MyCribHeader.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.terms-section {
    padding: 80px 0;
    background: transparent !important;
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
}

.terms-intro {
    background: rgba(26, 26, 26, 0.70);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.terms-intro p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.terms-item {
    background: rgba(26, 26, 26, 0.70);
    padding: 35px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    color: #ffffff;
}

.terms-item:nth-child(even) {
    background: rgba(255, 255, 255, 0.70);
    color: #333333;
}

.terms-item h2 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.terms-item:nth-child(even) h2 {
    color: #333333;
}

.terms-item h2 i {
    color: #4A90E2;
    font-size: 1.3rem;
}

.terms-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-item ul li {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.terms-item:nth-child(even) ul li {
    color: #555555;
}

.terms-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.terms-footer {
    background: rgba(26, 26, 26, 0.70);
    padding: 35px;
    border-radius: 10px;
    margin-top: 40px;
}

.terms-footer p {
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 15px;
}

.terms-footer p:last-child {
    margin-bottom: 0;
}

.terms-footer strong {
    color: #ffffff;
}

.terms-footer a {
    color: #4A90E2;
    font-weight: 500;
    text-decoration: underline;
}

.terms-footer a:hover {
    color: #6ba8e5;
}

/* Responsive */
@media (max-width: 768px) {
    /* Prevent JS fade/animation for terms section on mobile */
        .terms-section {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }
        .terms-item {
              background: rgba(26, 26, 26, 0.40);
              color: #ffffff;
        }
        .terms-item:nth-child(even) {
              background: rgba(255, 255, 255, 0.85);
              color: #333333;
        }
}
