body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #f6f0e7 0%, #fbf9f5 100%);
    color: #4b3a2f;
}

.page-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.site-header {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 35px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
}

.site-logo {
    display: block;
    width: clamp(200px, 60vw, 50px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.site-home-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    flex: 0 0 auto;
}

.site-header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0;
    margin-left: auto;
    align-self: flex-end;
    font-size: 14px;
    line-height: 1.4;
}

.site-header-link {
    color: #4B3A2F;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-header-link:hover,
.site-header-link:focus {
    color: #a8842f;
    background: rgba(168, 132, 47, 0.12);
    text-decoration: none;
    transform: translateY(-1px);
}

.site-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.legal-wrap {
    max-width: 1000px;
    margin: 22px auto;
    padding: 0;
}

.legal-card {
    background: #ffffff;
    border: 1px solid #e5ddd2;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(75, 58, 47, 0.08);
    padding: 24px;
}

.legal-title {
    margin: 0 0 8px;
    color: #4b3a2f;
    font-size: 28px;
    line-height: 1.2;
}

.legal-subtitle {
    margin: 0 0 18px;
    color: #6a5647;
    font-size: 14px;
}

.legal-content p,
.legal-content li {
    color: #5c4a3d;
    line-height: 1.7;
}

.legal-content h2 {
    color: #a8842f;
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 20px;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    border: 1px solid #a8842f;
    background: #c7a34b;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
}

.btn-back:hover,
.btn-back:focus {
    background: #a8842f;
    color: #fff;
}

.site-footer {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #e5ddd2;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    color: #4b3a2f;
    font-size: 14px;
}

.site-footer a {
    color: #4B3A2F;
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #a8842f;
    text-decoration: underline;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #e5ddd2;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 32px rgba(75, 58, 47, 0.18);
    color: #4b3a2f;
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cookie-banner__title {
    font-size: 15px;
    font-weight: 700;
}

.cookie-banner__text {
    font-size: 13px;
    line-height: 1.5;
    color: #6a5647;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-banner__link {
    color: #a8842f;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus {
    text-decoration: underline;
}

.cookie-banner__button {
    border: 1px solid #a8842f;
    background: #c7a34b;
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cookie-banner__button:hover,
.cookie-banner__button:focus {
    background: #a8842f;
    transform: translateY(-1px);
}

.footer-separator {
    color: #a8842f;
    margin: 0 8px;
}

@media (max-width: 768px) {
    .page-wrap {
        padding: 8px;
    }

    .site-header {
        padding: 8px 30px;
    }

    .site-logo {
        width: min(40vw, 430px);
    }

    .legal-wrap {
        margin: 14px auto;
    }

    .legal-card {
        padding: 16px;
    }

    .legal-title {
        font-size: 24px;
    }

    .site-footer {
        font-size: 13px;
        line-height: 1.7;
    }

    .cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer-separator {
        margin: 0 4px;
    }
}
