:root {
    --primary-color: #172155;
    --primary-gradient: linear-gradient(135deg, #172155 0%, #1e3a8a 100%);
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --border-color: #e2e8f0;
    --bg-light: #f7fafc;
}

.terms-header {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.terms-title {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.terms-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin: 1rem 0 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(23, 33, 85, 0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.terms-content {
    padding: 3rem;
}

.tos-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, rgba(23, 33, 85, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.tos-title:first-child {
    margin-top: 0;
}

.tos-title::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.terms-paragraph {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 1.2rem 0;
    text-align: justify;
    font-family: 'Poppins', sans-serif;
}

.terms-paragraph strong {
    color: var(--primary-color);
    font-weight: 600;
}

.terms-list {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.terms-list-item {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 1rem 0;
    padding-left: 2rem;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.terms-list-item::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    top: 0.1rem;
}

.nested-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.nested-list-item {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.highlight-box {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.highlight-box::before {
    content: '⚠';
    position: absolute;
    top: -10px;
    left: 20px;
    background: white;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0 10px;
}

.contact-section {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 0 0 20px 20px;
}

.contact-section h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-email {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-email:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.divider {
    height: 2px;
    background: var(--primary-gradient);
    border: none;
    margin: 2rem 0;
    border-radius: 1px;
    opacity: 0.3;
}

.last-updated {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .terms-title {
        font-size: 2.5rem;
    }

    .terms-content {
        padding: 2rem 1.5rem;
    }

    .tos-title {
        font-size: 1.2rem;
        padding: 0.6rem 1rem;
    }

    .terms-paragraph,
    .terms-list-item {
        font-size: 0.95rem;
    }
}
