/* ==================================================
   Legal Links Shortcode
================================================== */
.mrhost-legal-links {
    border: 1px solid #D5DFFF;
    background-color: #FAFBFF;
    border-radius: 10px;
    padding: 24px;
    font-family: "DM Sans", sans-serif;
}

/* Desktop visas som standard */
.mrhost-legal-links-desktop {
    display: block;
}

/* Mobil-dropdown dold som standard */
.mrhost-legal-links-mobile {
    display: none;
}

/* Sektioner */
.mrhost-legal-section + .mrhost-legal-section {
    margin-top: 28px;
}

/* Rubriker */
.mrhost-legal-section h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #000000;
}

/* Listor */
.mrhost-legal-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mrhost-legal-section li + li {
    margin-top: 8px;
}

/* Länkar */
.mrhost-legal-section a {
    display: inline-block;
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.25s ease;
}

/* Hover */
.mrhost-legal-section a:hover {
    color: #7253ED;
}

/* Aktiv sida */
.mrhost-legal-section a.is-active {
    color: #7253ED;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==================================================
   Mobile dropdown
================================================== */
@media (max-width: 1024px) {
    .mrhost-legal-links {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .mrhost-legal-links-desktop {
        display: none;
    }

    .mrhost-legal-links-mobile {
        display: block;
    }

    .mrhost-legal-links-mobile select {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #D5DFFF;
        border-radius: 6px;
        background-color: #FFFFFF;
        font-family: "DM Sans", sans-serif;
        font-size: 14px;
        color: #000000;
        outline: none;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
		transition: 0.25s ease-in-out;

        /* Enkel dropdown-pil */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237253ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }

    .mrhost-legal-links-mobile select:focus,
	.mrhost-legal-links-mobile select:hover{
        border-color: #7253ED;
    }
}
/* ==================================================
   Legal Page Content — läsbarhet
   Scopad till sidor med legal-sidebar
 ================================================== */
body:has(.mrhost-legal-links) .elementor-widget-text-editor h2 {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}
body:has(.mrhost-legal-links) .elementor-widget-text-editor h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
body:has(.mrhost-legal-links) .elementor-widget-text-editor h3 {
    margin-top: 25px;
}
body:has(.mrhost-legal-links) .elementor-widget-text-editor p,
body:has(.mrhost-legal-links) .elementor-widget-text-editor ul {
    margin-bottom: 16px;
    line-height: 1.7;
}
body:has(.mrhost-legal-links) .elementor-widget-text-editor table {
    margin: 20px 0;
}
body:has(.mrhost-legal-links) .elementor-widget-text-editor table {
    width: 100%;
    border-collapse: separate; /* Ändrat från collapse för att border-radius ska fungera */
    border-spacing: 0;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
}
body:has(.mrhost-legal-links) .elementor-widget-text-editor th,
body:has(.mrhost-legal-links) .elementor-widget-text-editor td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB; /* Ger snygga innerlinjer (valfritt) */
    font-size: 14px;
    line-height: 1.5;
}
body:has(.mrhost-legal-links) .elementor-widget-text-editor th:last-child,
body:has(.mrhost-legal-links) .elementor-widget-text-editor td:last-child {
    border-right: none; /* Tar bort sista innerlinjen till höger */
}
body:has(.mrhost-legal-links) .elementor-widget-text-editor th {
    background-color: #F9FAFB;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #374151;
}
body:has(.mrhost-legal-links) .elementor-widget-text-editor tr:last-child td {
    border-bottom: none;
}
body:has(.mrhost-legal-links) .elementor-widget-text-editor tr:nth-child(even) {
    background-color: #FAFBFF;
}
