/* ================================================================
   ContratosLab — Legal Pages CSS
   Used by: AvisoLegal · PoliticaPrivacidad · PoliticaCookies
   Palette: warm dark slate #1C1917 + bordeaux #9B2020 + Cormorant/Outfit
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

.lg-body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: #FBF8F4;
    color: #1A1410;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

/* ── HERO ────────────────────────────────────────────────────── */
.lg-hero {
    background: #1C1917;
    padding: 64px 64px 56px;
    position: relative;
    overflow: hidden;
}
.lg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 85% 50%, rgba(155,32,32,.14), transparent 65%),
        radial-gradient(ellipse 40% 60% at 0% 100%, rgba(200,150,138,.06), transparent 60%);
    pointer-events: none;
}
.lg-hero::after {
    content: attr(data-watermark);
    position: absolute;
    right: 56px; top: 50%;
    transform: translateY(-50%);
    font-family: 'Cormorant', serif;
    font-size: 160px; font-weight: 600;
    color: rgba(155,32,32,.05);
    letter-spacing: -5px;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}
.lg-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}
.lg-eyebrow {
    font-size: 10px; font-weight: 600;
    letter-spacing: 3.2px; text-transform: uppercase;
    color: rgba(255,255,255,.38);
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 22px;
}
.lg-eyebrow::before {
    content: ''; width: 28px; height: 2px;
    background: #9B2020; flex-shrink: 0;
}
.lg-hero h1 {
    font-family: 'Cormorant', Georgia, serif;
    font-size: clamp(36px, 4.8vw, 56px);
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.5px;
    margin: 0 0 14px;
}
.lg-hero h1 em {
    font-style: italic;
    color: #C8968A;
}
.lg-updated {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    letter-spacing: .15px;
    margin: 0;
}

/* ── CONTENT WRAPPER ─────────────────────────────────────────── */
.lg-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 64px 40px 80px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: flex-start;
}

/* ── TOC SIDEBAR ─────────────────────────────────────────────── */
.lg-toc {
    position: sticky;
    top: 134px;
    font-family: 'Outfit', system-ui, sans-serif;
}
.lg-toc-title {
    font-size: 10px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: #9C8F85;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E8E0D8;
}
.lg-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lg-toc a {
    font-size: 13px;
    color: #6B5F57;
    text-decoration: none;
    line-height: 1.45;
    padding: 4px 0 4px 12px;
    border-left: 1.5px solid #E8E0D8;
    transition: color .15s, border-color .15s;
    display: block;
}
.lg-toc a:hover {
    color: #9B2020;
    border-left-color: #9B2020;
}

/* ── ARTICLE CONTENT ─────────────────────────────────────────── */
.lg-article {
    background: #fff;
    border: 1.5px solid #E8E0D8;
    border-radius: 14px;
    padding: 48px 52px 52px;
    box-shadow: 0 2px 18px rgba(28,25,23,.04);
}
.lg-intro {
    font-size: 15.5px;
    line-height: 1.75;
    color: #4A423B;
    margin: 0 0 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #EFE7DF;
}
.lg-section {
    margin-top: 36px;
    scroll-margin-top: 144px;
}
.lg-section:first-of-type { margin-top: 0; }

.lg-h2 {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: #1A1410;
    line-height: 1.25;
    letter-spacing: -.2px;
    margin: 0 0 18px;
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.lg-h2-num {
    font-size: 16px;
    font-weight: 500;
    color: #9B2020;
    font-family: 'Cormorant', serif;
    font-style: italic;
    flex-shrink: 0;
}
.lg-h3 {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1A1410;
    letter-spacing: .3px;
    margin: 24px 0 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.lg-article p {
    font-size: 14.5px;
    line-height: 1.75;
    color: #4A423B;
    margin: 0 0 14px;
}
.lg-article p strong { color: #1A1410; font-weight: 600; }
.lg-article a {
    color: #9B2020;
    text-decoration: underline;
    text-decoration-color: rgba(155,32,32,.3);
    text-underline-offset: 2px;
    transition: text-decoration-color .15s;
}
.lg-article a:hover {
    text-decoration-color: #9B2020;
}

.lg-article ul {
    margin: 12px 0 18px;
    padding-left: 0;
    list-style: none;
}
.lg-article ul li {
    font-size: 14.5px;
    line-height: 1.7;
    color: #4A423B;
    padding: 4px 0 4px 22px;
    position: relative;
}
.lg-article ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    width: 6px;
    height: 1.5px;
    background: #9B2020;
    border-radius: 1px;
}

/* ── DATA TABLE (datos identificativos, derechos…) ───────────── */
.lg-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: 14px;
    background: #FDFAF5;
    border: 1px solid #EFE7DF;
    border-radius: 10px;
    overflow: hidden;
}
.lg-table th,
.lg-table td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid #EFE7DF;
    vertical-align: top;
    line-height: 1.55;
}
.lg-table th {
    background: #F4ECE2;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6B5F57;
}
.lg-table tr:last-child td { border-bottom: none; }
.lg-table tr:last-child th { border-bottom: none; }
.lg-table td:first-child {
    font-weight: 600;
    color: #1A1410;
    width: 38%;
    background: #FBF6EE;
}

/* ── CALLOUT (tarjeta destacada) ─────────────────────────────── */
.lg-callout {
    background: #FDF2F2;
    border: 1px solid rgba(155,32,32,.18);
    border-left: 3px solid #9B2020;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 22px 0;
    font-size: 14px;
    color: #4A423B;
    line-height: 1.65;
}
.lg-callout strong { color: #9B2020; }

/* ── INFO GRID (4 fines de tratamiento, etc.) ────────────────── */
.lg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 18px 0 24px;
}
.lg-card {
    background: #FBF6EE;
    border: 1px solid #EFE7DF;
    border-radius: 10px;
    padding: 18px 20px;
}
.lg-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9B2020;
    margin: 0 0 10px;
}
.lg-card ul li::before {
    background: #9B2020;
    opacity: .55;
}

/* ── COOKIE PREFS BUTTON (used inside PoliticaCookies) ───────── */
.lg-cookie-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #9B2020;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .18s;
    margin: 8px 0 4px;
}
.lg-cookie-btn:hover {
    background: #7a1919;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(155,32,32,.28);
    text-decoration: none !important;
}

/* ── SIGNATURE BLOCK at bottom ───────────────────────────────── */
.lg-signature {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #EFE7DF;
    font-size: 13px;
    color: #6B5F57;
    line-height: 1.65;
}
.lg-signature strong { color: #1A1410; display: block; margin-bottom: 4px; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 980px) {
    .lg-wrap { grid-template-columns: 1fr; gap: 32px; }
    .lg-toc { position: static; padding-bottom: 12px; border-bottom: 1px solid #E8E0D8; }
    .lg-toc ul { flex-direction: row; flex-wrap: wrap; gap: 6px 4px; }
    .lg-toc a { border-left: none; padding: 4px 12px; border-radius: 6px; background: #FBF6EE; font-size: 12px; }
}
@media (max-width: 720px) {
    .lg-hero { padding: 48px 24px 40px; }
    .lg-hero::after { font-size: 100px; right: 16px; }
    .lg-wrap { padding: 48px 20px 64px; }
    .lg-article { padding: 30px 24px 36px; }
    .lg-grid { grid-template-columns: 1fr; }
    .lg-table th, .lg-table td { padding: 10px 14px; font-size: 13px; }
    .lg-table td:first-child { width: 42%; }
}
