main {
    position: relative;
    height: auto;
    height: fit-content !important;
}

main::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  height: fit-content !important;
}

.legal-main {
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 80px;
    background: white;
    display: block;
    width: 100%;
}

.legal-header {
    background: linear-gradient(135deg, #E5E9EB, #99B8BD);
    padding: 140px 0px 80px;
    position: relative;
    width: 100%;
    display: block;
}

.legal-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
}

.legal-header * {
    position: relative;
    z-index: 1;
}

.legal-header-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.legal-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.legal-date {
    font-size: 16px;
    color: var(--secondary-color);
    font-style: italic;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    height: auto;
    height: fit-content !important;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section:last-of-type {
    margin-bottom: 60px;
}

.legal-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(62, 90, 96, 0.1);
}

.legal-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 24px;
    margin-bottom: 16px;
}

.legal-section p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section ul {
    margin: 16px 0 16px 24px;
    padding: 0;
}

.legal-section li {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
}

.legal-section li::marker {
    color: var(--primary-color);
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: #1f3e44;
}

.legal-section strong {
    font-weight: 600;
    color: var(--primary-color);
}

.legal-back {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(62, 90, 96, 0.1);
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(62, 90, 96, 0.2);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}

@media (max-width: 968px) {
    .legal-header {
        padding: 120px 0px 60px;
    }

    .legal-title {
        font-size: 38px;
    }

    .legal-date {
        font-size: 15px;
    }

    .legal-container {
        width: 90%;

        padding: 50px 0px 70px;
    }

    .legal-section {
        margin-bottom: 40px;
    }

    .legal-section h2 {
        font-size: 24px;
    }

    .legal-section h3 {
        font-size: 20px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .legal-header {
        padding: 100px 0px 50px;
    }

    .legal-title {
        font-size: 32px;
    }

    .legal-date {
        font-size: 14px;
    }

    .legal-container {
        padding: 40px 0px 60px;
    }

    .legal-section {
        margin-bottom: 36px;
    }

    .legal-section h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .legal-section h3 {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 15px;
        line-height: 1.7;
    }

    .legal-section ul {
        margin-left: 20px;
    }

    .legal-back {
        margin-top: 50px;
        padding-top: 30px;
    }

    .back-button {
        padding: 10px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .legal-header {
        padding: 90px 0px 40px;
    }

    .legal-title {
        font-size: 26px;
    }

    .legal-container {
        padding: 35px 0px 50px;
    }

    .legal-section {
        margin-bottom: 32px;
    }

    .legal-section h2 {
        font-size: 20px;
    }

    .legal-section h3 {
        font-size: 17px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 14px;
    }

    .back-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
