/*********************************************
    GRUND STYLING
*********************************************/
html, body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    background: var(--section-gradient-light);
}

/*********************************************
    POLICY/404 CONTAINER
*********************************************/
.policy-container {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 3rem 3rem 1rem; /* Ökar padding */
    border-radius: var(--main-border-radius);
    box-shadow: var(--shadow-light);
    background: var(--primary-background);
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Specialhantering för 404-sidan */
.error-page .policy-container {
    min-height: calc(100vh - 400px); /* Justeras för att passa innehållet */
}

/* Resten av CSS:en förblir samma... */
/*********************************************
    SEKRETESSPOLICY STYLING
*********************************************/
.policy-container {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 2rem 2rem 0;
    border-radius: var(--main-border-radius);
    box-shadow: var(--shadow-light);
    background: var(--primary-background);
}

/*********************************************
    POLICY HEADER & IKONER
*********************************************/
.policy-icon-container {
    text-align: center;
    margin-bottom: 2rem;
}

.policy-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.policy-icon:hover {
    transform: scale(1.1);
}

/*********************************************
    POLICY TYPOGRAPHY
*********************************************/
.policy-h2 {
    color: var(--main-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    text-shadow: -1px -1px 0 #ffffff, 1px 1px 2px rgba(0, 0, 0, 0.25);
}

.policy-content {
    line-height: 1.6;
    color: #333333;
}

.policy-content p {
    margin-bottom: 1.5rem;
}

.policy-content p:last-child {
    margin-bottom: 2rem;
}

/*********************************************
    POLICY LÄNKAR
*********************************************/
.policy-content a {
    color: #2a6368;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-content a:hover {
    color: #4899a3;
    text-decoration: none;
}

/*********************************************
    POLICY KNAPP
*********************************************/
.button-container {
    position: static;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 4px;
    text-align: center;
    background: transparent; /* Ändrad till transparent */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.button {
    display: inline-block;
    width: 100%; /* Fyller ut hela container-bredden */
    padding: 8px 24px;
    background: linear-gradient(to right, #1a8296, #21334f);
    color: white;
    text-decoration: none;
    border-radius: var(--main-border-radius);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow-light);
    margin: 0 auto;
}

.button:hover {
    background: linear-gradient(to right, #21334f, #1a8296);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/*********************************************
    FOOTER STYLING
*********************************************/
.footer-container {
    background: var(--footer-bg-color);
    padding: 40px 40px 20px;
    color: var(--footer-text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    position: relative;
    bottom: 0;
}

/* Ikon-container */
.footer-center.footer-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    width: 100%;
}

/* Individuella ikoner */
.footer-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-icon-link img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Hover effekt för ikoner */
.footer-icon-link:hover img {
    transform: translateY(-3px);
}

/* Hover text under ikoner */
.footer-icon-link::after {
    content: attr(data-hover-text);
    display: block;
    color: var(--footer-text-color);
    font-size: 0.9em;
    margin-top: 5px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Copyright text */
.footer-left {
    color: var(--footer-text-color);
    font-size: 0.9rem;
    text-align: center;
    padding-top: 20px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/*********************************************
    MOBILA JUSTERINGAR
*********************************************/
@media screen and (max-width: 768px) {
    .policy-container {
        max-width: 98%;
        margin: 1rem;
        padding: 1rem 1rem 0;
    }
    
    .policy-h2 {
        font-size: 1.5rem;
    }
    
    .policy-icon {
        width: 60px;
        height: 60px;
    }
    
    .button {
        width: 90%;
        padding: 8px 20px;
    }
    
    .button-container {
        padding: 4px;
    }

    .footer-center.footer-icons {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 15px;
    }

    .footer-icon-link img {
        width: 30px;
        height: 30px;
        margin-bottom: 3px;
    }

    .footer-icon-link::after {
        font-size: 0.8em;
    }

    .footer-container {
        padding: 20px 10px 10px;
    }

    .footer-left {
        padding-top: 15px;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .policy-content {
        font-size: 0.8rem;
    }
    
    .policy-h2 {
        font-size: 1.25rem;
    }

    .footer-icon-link img {
        width: 25px;
        height: 25px;
    }
}