/* =========================================
   FORJA DIGITAL — ESTILOS DE PÁGINAS LEGALES
   Aviso legal, privacidad y cookies
   ========================================= */

/* Variables de diseño */
:root {
    --legal-bg: #080b12;
    --legal-surface: #101521;
    --legal-surface-hover: #151c2b;
    --legal-cyan: #00d9ff;
    --legal-purple: #a970ff;
    --legal-text: #e8edf7;
    --legal-muted: #a3adc0;
    --legal-border: rgba(0, 217, 255, 0.18);
    --legal-radius: 12px;
}

/* Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 0%,
            rgba(0, 217, 255, 0.07),
            transparent 32rem),
        radial-gradient(circle at 95% 25%,
            rgba(169, 112, 255, 0.07),
            transparent 28rem),
        var(--legal-bg);
    color: var(--legal-text);
    line-height: 1.8;
}

/* Enlaces */
a {
    color: var(--legal-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--legal-purple);
}

a:focus-visible {
    outline: 2px solid var(--legal-cyan);
    outline-offset: 4px;
    border-radius: 3px;
}

/* Cabecera */
.legal-header {
    width: 100%;
    min-height: 76px;
    padding: 18px max(5%, calc((100% - 1120px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(8, 11, 18, 0.92);
    border-bottom: 1px solid var(--legal-border);
}

.legal-header .logo {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.legal-header .logo::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 10px 3px 0;
    background: var(--legal-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--legal-cyan);
}

.legal-header nav {
    color: var(--legal-muted);
    font-size: 0.9rem;
}

.legal-header nav a {
    margin-left: 12px;
}

/* Contenido principal */
.legal-content {
    width: min(100% - 40px, 900px);
    margin: 55px auto 75px;
    flex: 1;
}

/* Título principal */
.legal-content h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.2;
    letter-spacing: -1px;
}

.legal-content h1::after {
    content: "";
    display: block;
    width: 75px;
    height: 4px;
    margin-top: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg,
            var(--legal-cyan),
            var(--legal-purple));
}

/* Fecha de actualización y texto introductorio */
.legal-content>p:first-of-type {
    margin-top: 20px;
    color: var(--legal-muted);
    font-size: 0.9rem;
}

.legal-content p {
    margin: 14px 0;
    color: #c5cddd;
}

.legal-content strong {
    color: #f4f7ff;
}

/* Secciones */
.legal-content h2 {
    margin: 42px 0 15px;
    padding-left: 15px;
    border-left: 3px solid var(--legal-cyan);
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1.4;
}

.legal-content h2:nth-of-type(even) {
    border-left-color: var(--legal-purple);
}

/* Listas */
.legal-content ul {
    margin: 18px 0;
    padding: 20px 25px 20px 42px;
    background: var(--legal-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--legal-radius);
}

.legal-content li {
    padding: 5px 0;
    color: #c5cddd;
}

.legal-content li::marker {
    color: var(--legal-cyan);
}

/* Tablas: especialmente para la política de cookies */
.legal-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    overflow-wrap: anywhere;
    background: var(--legal-surface);
    border: 1px solid var(--legal-border);
    font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
    padding: 14px;
    text-align: left;
    vertical-align: top;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-content th {
    background: #172032;
    color: var(--legal-cyan);
    font-weight: 700;
}

.legal-content td {
    color: #c5cddd;
}

/* Avisos y campos pendientes */
.placeholder-note {
    margin-top: 40px !important;
}