* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


.tandc-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.tandc-language-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.tandc-language-selector button {
    width: 39px;
    height: 39px;
    border: 4px solid #CCCCCC;
    border-radius: 50%;
    margin: 0 5px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.tandc-language-selector button.tandc-italian {
    background-image: url('https://flagcdn.com/w40/it.png');
}

.tandc-language-selector button.tandc-turkish {
    background-image: url('https://flagcdn.com/w40/tr.png');
}

.tandc-language-selector button.tandc-chinese {
    background-image: url('https://flagcdn.com/w40/cn.png');
}

.tandc-language-selector button.tandc-british {
    background-image: url('https://flagcdn.com/w40/gb.png');
}

.tandc-language-selector button.active {
    opacity: 1;
    border-color: #FFCC00;
}

.tandc-text-window {
    position: relative;
    width: 100%;
    height: 496px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0;
    border-radius: 8px;
}

.tandc-text-content {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 60px);
    padding: 30px;
    transition: transform 0.3s ease;
    text-align: left;
}

.tandc-arrow {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #FFCC00;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    color: black;
}

.tandc-arrow.tandc-up {
    top: 10px;
    right: 10px;
}

.tandc-arrow.tandc-down {
    bottom: 10px;
    right: 10px;
}

/* Медиа-запрос для планшетов */
@media screen and (max-width: 768px) {
    .tandc-container {
        width: 95%;
    }
    
    .tandc-text-window {
        height: 400px;
    }
}

/* Медиа-запрос для мобильных устройств */
@media screen and (max-width: 480px) {
    .tandc-container {
        width: 100%;
        padding: 0 10px;
    }
    
    .tandc-text-window {
        height: auto;
        overflow: visible;
    }
    
    .tandc-text-content {
        position: relative;
        transform: none !important;
        width: 100%;
        padding: 20px;
    }
    
    .tandc-arrow {
        display: none;
    }
}

/* Общие стили для текстов условий */
.tandc-text-content p {
    display: block;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Стили для заголовков и секций */
.tandc-text-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #FFCC00;
}

.tandc-text-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px;
    color: #FFCC00;
}

.tandc-text-content section {
    margin-bottom: 20px;
}

/* Стили для списков */
.tandc-text-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.tandc-text-content li {
    margin-bottom: 8px;
}

/* Стили для ссылок */
.tandc-text-content a {
    color: #FFCC00;
    text-decoration: none;
}

.tandc-text-content a:hover {
    text-decoration: underline;
}

/* Стили для выделенного текста */
.tandc-text-content strong {
    color: #FFCC00;
    font-weight: 600;
}

/* Стили для цитат */
.tandc-text-content blockquote {
    border-left: 3px solid #FFCC00;
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
}

/* Адаптивные стили */
@media screen and (max-width: 768px) {
    .tandc-text-content h1 {
        font-size: 22px;
    }

    .tandc-text-content h2 {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .tandc-text-content h1 {
        font-size: 20px;
    }

    .tandc-text-content h2 {
        font-size: 16px;
    }

    .tandc-text-content {
        font-size: 14px;
    }
}

/* Добавляем выравнивание по левому краю для всех текстовых элементов */
.tandc-text-content h1,
.tandc-text-content h2,
.tandc-text-content p,
.tandc-text-content ul,
.tandc-text-content li {
    text-align: left;
}