/* Main container with confined space */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 2rem 0;
}

.terms-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.terms-content-wrapper {
    display: grid;
    grid-template-columns: minmax(200px, 800px);
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    padding: 1rem;
}

.terms-header {
    background: linear-gradient(145deg, 
        #333333 0%, 
        #3d1a1a 25%,
        #4d0000 50%,
        #590000 75%,
        #660000 100%
    );
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.terms-header h1 {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.terms-section {
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease-out;
}

.terms-section.visible {
    opacity: 1;
    transform: translateX(0);
}

.terms-section h2 {
    color: #4d0000;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(77, 0, 0, 0.1);
}

.terms-section h3 {
    color: #4d0000;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(77, 0, 0, 0.1);
}

.terms-section h4 {
    color: #4d0000;
    text-align: left;
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.terms-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
}

.terms-section ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-section li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.terms-section li:before {
    content: none;
}

.terms-contact-section {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.terms-contact-header {
    background: linear-gradient(145deg, 
        #333333 0%, 
        #3d1a1a 25%,
        #4d0000 50%,
        #590000 75%,
        #660000 100%
    );
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 2rem -2rem;
    text-align: center;
}

.terms-contact-header h3 {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.terms-contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.terms-contact-item {
    text-align: center;
    padding: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.terms-contact-item i {
    font-size: 1.8rem;
    color: #4d0000;
    margin-bottom: 0.5rem;
}

.terms-contact-item a {
    color: #4d0000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
}

.terms-contact-item:hover {
    background: rgba(77, 0, 0, 0.03);
}

.terms-contact-section p {
    text-align: left;
}

@media (max-width: 768px) {
    .terms-container {
        padding: 1rem;
        margin: 0.5rem;
    }

    .terms-content-wrapper {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .terms-section {
        padding: 1rem;
    }

    .terms-header h1 {
        font-size: 1.4rem;
    }

    .terms-contact-links {
        grid-template-columns: 1fr;
    }
} 