/* Стили для страниц: пользовательское соглашение, политика конфиденциальности, контакты */

.legal-hero-icon {
    width: 72px;
    height: 72px;
    line-height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #FF9800 0%, #FFC107 100%);
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.35);
    font-size: 28px;
    color: #fff;
    text-align: center;
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    opacity: 0.75;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    transition: opacity 0.2s ease;
}

.legal-back-link:hover {
    opacity: 1;
}

.legal-updated {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Аккордеон разделов (соглашение / конфиденциальность) */

.legal-window {
    border-radius: 16px;
    overflow: hidden;
}

.legal-window .accordion {
    background-color: #fff;
}

.legal-window .accordion > .accordion-id {
    border-bottom: 1px solid #f0f0f0;
}

.legal-window .accordion > .accordion-id:last-child {
    border-bottom: 0;
}

.legal-window .accordion > .accordion-id > .accordion-trigger {
    background: #fff;
    color: #212121;
    border-bottom: 0;
    padding: 22px 60px 22px 24px;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.25s ease;
}

.legal-window .accordion > .accordion-id > .accordion-trigger:hover {
    background: #fff8ef;
}

.legal-window .accordion > .accordion-id > .accordion-trigger .num {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: #FFF3E0;
    color: #FB8C00;
    font-size: 13px;
    margin-right: 14px;
    vertical-align: middle;
}

.legal-window .accordion > .accordion-id > .accordion-trigger:after {
    background: #FFE0B2;
    color: #FB8C00;
    text-align: center;
    line-height: 26px;
    top: 22px;
    right: 20px;
    width: 26px;
    height: 26px;
}

.legal-window .accordion > .accordion-id.active > .accordion-trigger {
    background: #fff8ef;
}

.legal-window .accordion > .accordion-id > .accordion-target {
    padding: 4px 24px 24px 68px;
    color: #616161;
    line-height: 22px;
}

.legal-window .accordion > .accordion-id > .accordion-target p {
    padding-bottom: 12px;
}

.legal-window .accordion > .accordion-id > .accordion-target p:last-child {
    padding-bottom: 0;
}

.legal-window .accordion > .accordion-id > .accordion-target ul {
    padding-left: 18px;
}

.legal-window .accordion > .accordion-id > .accordion-target ul li {
    list-style: disc;
    padding-bottom: 8px;
}

/* Карточки контактов */

.contact-card {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(255, 152, 0, 0.25);
}

.contact-card .contact-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    background: #FFF3E0;
    color: #FB8C00;
    font-size: 22px;
}

.contact-card .contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9e9e9e;
    font-weight: 700;
    padding-bottom: 6px;
}

.contact-card .contact-value {
    font-size: 15px;
    color: #212121;
    font-weight: 700;
    word-break: break-word;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 100%;
    }
}

.legal-note-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
}

.legal-note-card h2 {
    font-size: 18px;
    padding-bottom: 16px;
    color: #212121;
}

.legal-note-card ul {
    padding-left: 18px;
    padding-bottom: 20px;
}

.legal-note-card ul li {
    list-style: disc;
    color: #616161;
    line-height: 22px;
    padding-bottom: 8px;
}

.legal-note-card p {
    color: #616161;
    line-height: 22px;
}

/* Ссылки на страницы agreement/privacy/contacts в футере */

.footer-legal-links {
    margin-top: 6px;
    font-size: 12px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.55);
    margin: 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #FFB300;
}
