/* Difriho · Índice de las páginas legales. Estilo coherente con Condiciones de venta. */
.df-legal-page .df-page-main { overflow: visible; }
.df-legal-page .df-page-hero { overflow: hidden; }
.df-legal-page .df-legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 245px) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}
.df-legal-page .df-legal-layout > .df-legal-card {
    width: 100%; max-width: none; min-width: 0; margin: 0;
    overflow-wrap: break-word;
}
.df-legal-page .df-legal-nav {
    position: sticky;
    top: calc(var(--df-header-height, 82px) + 23px);
    align-self: start;
    min-width: 0;
}
.df-legal-page .df-legal-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 20px 12px;
    border: 1px solid #d9e6ee;
    border-radius: 16px;
    background: #f7fbfe;
    max-height: calc(100vh - var(--df-header-height, 82px) - 46px);
    max-height: calc(100dvh - var(--df-header-height, 82px) - 46px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b6d0df transparent;
}
.df-legal-page .df-legal-nav-heading {
    margin: 1px 12px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #52718b;
}
.df-legal-page a.df-legal-nav-link {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #315971;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.df-legal-page .df-legal-nav-number {
    flex: 0 0 16px;
    font-variant-numeric: tabular-nums;
    color: #6e9bb4;
    font-size: 11px;
    font-weight: 800;
}
.df-legal-page a.df-legal-nav-link:hover,
.df-legal-page a.df-legal-nav-link:focus-visible {
    color: #115480; background: #e9f4fb; border-color: #cce3f2;
}
.df-legal-page a.df-legal-nav-link:focus-visible { outline: 2px solid #318dbd; outline-offset: -2px; }
.df-legal-page a.df-legal-nav-link[aria-current="location"] {
    color: #115480; background: #e2f0f9; border-color: #b8d7e9;
    box-shadow: inset 3px 0 #318dbd;
}
.df-legal-page .df-legal-card h5[id] { scroll-margin-top: calc(var(--df-header-height, 82px) + 28px); }
.df-legal-page .df-legal-card h5[id]:target { color: #1476ab; }
.df-legal-page .df-cookie-policy-item { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1199px) {
    .df-legal-page .df-legal-layout { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; }
    .df-legal-page .df-cookie-policy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 950px) {
    .df-legal-page .df-legal-layout { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 20px; }
    .df-legal-page a.df-legal-nav-link { padding: 10px 8px; gap: 8px; }
    .df-legal-page .df-legal-layout > .df-legal-card { padding: 28px; }
}
@media (max-width: 767px) {
    .df-legal-page .df-legal-layout { display: block; }
    .df-legal-page .df-legal-nav { position: static; margin-bottom: 20px; }
    .df-legal-page .df-legal-nav-inner { max-height: none; overflow: visible; flex-direction: row; flex-wrap: wrap; gap: 7px; padding: 14px; border-radius: 13px; }
    .df-legal-page .df-legal-nav-heading { width: 100%; margin: 2px 6px 4px; }
    .df-legal-page a.df-legal-nav-link { padding: 8px 11px; background: white; border-color: #e0ebf3; font-size: 11px; max-width: 100%; }
    .df-legal-page .df-legal-nav-number { display: none; }
    .df-legal-page .df-legal-layout > .df-legal-card { padding: 24px 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .df-legal-page a.df-legal-nav-link { transition: none; }
    html:has(.df-legal-page .df-legal-layout) { scroll-behavior: auto; }
}
