*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.main-content {
    margin-top: 80px; /* Wysokość headera, gdy menu jest zamknięte */
    transition: margin-top 0.1s ease;
}

body.menu-open .main-content {
    margin-top: 320px; /* Wysokość headera, gdy menu jest otwarte (powinna odpowiadać max-height z nav.menu-open) */
}

/* Stylizacja głównego kontenera */
.privacy-container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
    font-family: 'Fredoka', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Nagłówek strony */
.privacy-container h1 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Sekcje */
.privacy-container h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Podsekcje */
.privacy-container h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Akapity */
.privacy-container p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Lista nieuporządkowana */
.privacy-container ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-container ul li {
    margin-bottom: 10px;
}

/* Linki */
.privacy-container a {
    color: #f86969;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.privacy-container a:hover {
    text-decoration: underline;
}

/* Spis treści */
.table-of-contents {
    margin-bottom: 30px;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
    background-color: #fafafa;
}

.table-of-contents h2 {
    margin-top: 0;
}

.table-of-contents ul {
    list-style-type: none;
    padding-left: 0;
}

.table-of-contents ul li {
    margin-bottom: 10px;
}

.table-of-contents ul li a {
    color: #333;
}

/* Przycisk powrotu na górę strony */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #000000;
    color: #fff;
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 100;
}

.back-to-top:hover {
    background-color: #4d4d4d;
}

@media (max-width: 800px) {
    .main-content {
        margin-top: 200px;
        width: 100%;
    }

    .privacy-container {
        width: 90%;
        padding: 20px 0;
    }

    .privacy-container h1 {
        font-size: 28px;
    }

    .privacy-container h2 {
        font-size: 24px;
    }

    .privacy-container h3 {
        font-size: 20px;
    }
}