/* Terms of Service Styles */
.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.6;
}

.terms-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
}

.terms-page .page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.terms-page .page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.last-updated i {
    color: var(--primary-color);
}

.terms-content {
    margin-bottom: 3rem;
}

.terms-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.terms-section h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-section h2 i {
    font-size: 1.2rem;
}

.terms-section p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.terms-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.terms-section li strong {
    color: var(--primary-color);
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.warning-box i {
    color: #856404;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.warning-box strong {
    color: #856404;
    display: block;
    margin-bottom: 0.5rem;
}

.warning-box p {
    margin: 0;
    color: #856404;
}

/* Cookie Types */
.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.cookie-type {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.cookie-type h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.cookie-type p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Contact Info in Terms */
.contact-info {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Terms Footer */
.terms-footer {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.acceptance-note {
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.acceptance-note i {
    color: var(--success-color);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.acceptance-note p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.related-links h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.related-links .links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.related-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--text-secondary);
    color: white;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-container {
        padding: 1rem 0.5rem;
    }
    
    .terms-page .page-title {
        font-size: 2rem;
    }
    
    .terms-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.2rem;
    }
    
    .cookie-types {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .related-links .links {
        flex-direction: column;
        align-items: center;
    }
    
    .related-links .btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .terms-page .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .warning-box {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .terms-section h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}
