/*
 * DPDP Compliance Hub — Global Design System
 * style.css: Tokens, typography, layout, buttons, cards, utilities.
 *
 * DO NOT add Tailwind-style utilities unless they serve multiple pages.
 * ALL SVGs MUST BE EXPLICITLY SIZED IN MARKUP OR COMPONENT CSS.
 */

/* ═══════════════════════════════════════════════════════════
   1. DESIGN TOKENS (Premium LegalTech SaaS)
══════════════════════════════════════════════════════════════ */
:root {
    /* Color Palette */
    --surface-bg:    #FFFFFF;
    --page-bg:       #F7F9FC;
    --dark-bg:       #07111F;

    --text-primary:  #0B1220;
    --text-secondary:#526176;
    --text-tertiary: #94A3B8;

    --blue-primary:  #2563EB;
    --blue-dark:     #1D4ED8;
    --cyan-accent:   #06B6D4;
    --violet-accent: #8B5CF6;

    --success:       #16A34A;
    --success-bg:    #DCFCE7;
    --warning:       #F59E0B;
    --warning-bg:    #FEF3C7;
    --danger:        #EF4444;
    --danger-bg:     #FEE2E2;

    --border-light:  #E2E8F0;
    --border-subtle: #F1F5F9;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Responsive Typography Clamps */
    --text-xs:   0.75rem;    /* 12px */
    --text-sm:   0.875rem;   /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg:   1.125rem;   /* 18px */
    --text-xl:   1.25rem;    /* 20px */
    --text-2xl:  clamp(1.5rem, 2.5vw, 1.875rem);   /* 24-30px */
    --text-3xl:  clamp(1.875rem, 3.5vw, 2.25rem);  /* 30-36px */
    --text-4xl:  clamp(2.25rem, 4vw, 3rem);        /* 36-48px */
    --text-5xl:  clamp(3rem, 5vw, 4.5rem);         /* 48-72px */

    /* Layout & Spacing */
    --container-w: 1240px;
    --header-h:    72px;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(11, 18, 32, 0.05), 0 2px 4px -1px rgba(11, 18, 32, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(11, 18, 32, 0.05), 0 4px 6px -2px rgba(11, 18, 32, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(11, 18, 32, 0.05), 0 10px 10px -5px rgba(11, 18, 32, 0.02);
    --glow-blue: 0 0 24px -4px rgba(37, 99, 235, 0.15);

    /* Legacy mapping for inner pages (safeguard) */
    --bg-page: var(--page-bg); --bg-card: var(--surface-bg); --bg-subtle: #F8FAFC;
    --text-main: var(--text-primary); --text-muted: var(--text-secondary); --text-faint: var(--text-tertiary);
    --accent: var(--blue-primary); --accent-hover: var(--blue-dark);
    --primary: var(--text-primary); --border: var(--border-light);
    --s1: var(--space-1); --s2: var(--space-2); --s3: var(--space-3); --s4: var(--space-4);
    --s6: var(--space-6); --s8: var(--space-8); --s12: var(--space-12); --s16: var(--space-16);
    --s24: var(--space-24); --s32: var(--space-32);
    --r-sm: var(--radius-sm); --r-md: var(--radius-md); --r-lg: var(--radius-lg); --r-xl: var(--radius-xl); --r-full: var(--radius-full);
}

[data-theme="dark"] {
    --surface-bg:    #0F172A;
    --page-bg:       #020617;
    --text-primary:  #F8FAFC;
    --text-secondary:#94A3B8;
    --text-tertiary: #64748B;
    --border-light:  #1E293B;
    --border-subtle: #0F172A;
    
    --bg-page: var(--page-bg); 
    --bg-card: var(--surface-bg); 
    --bg-subtle: #1E293B;
    --text-main: var(--text-primary); 
    --text-muted: var(--text-secondary); 
    --text-faint: var(--text-tertiary);
    --primary: var(--text-primary); 
    --border: var(--border-light);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   2. RESET & BASE
══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base 16px is required */
}

body {
    font-family: var(--font-sans);
    background: var(--page-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: var(--text-base); /* 16px minimum on desktop */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Hard constraint on SVGs. Explicit sizing is still required in markup. */
img, svg { display: block; max-width: 100%; }

a {
    color: var(--blue-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--blue-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
p { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════
   3. LAYOUT
══════════════════════════════════════════════════════════════ */
.container {
    max-width: var(--container-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}
@media (max-width: 768px) {
    .container { padding-left: 20px; padding-right: 20px; }
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* ═══════════════════════════════════════════════════════════
   4. SITE HEADER
══════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}
.site-header__logo {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}
.site-header__brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.site-header__brand-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--blue-primary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.site-header__brand:hover { color: var(--text-primary); }

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex: 1;
    justify-content: flex-end;
}
.site-header__nav > a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.site-header__nav > a:hover { color: var(--text-primary); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}
.nav-dropdown__trigger:hover { color: var(--text-primary); }
.nav-dropdown__trigger svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown__trigger svg { transform: rotate(180deg); }

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--surface-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s ease;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown__menu a {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-decoration: none;
}
.nav-dropdown__menu a:hover {
    background: var(--page-bg);
    color: var(--blue-primary);
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.nav-icon-btn svg { width: 18px; height: 18px; }
.nav-icon-btn:hover { background: var(--page-bg); color: var(--text-primary); }

.btn-cta-nav {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    background: var(--text-primary);
    color: #fff !important;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-cta-nav:hover { background: #1e293b; color: #fff !important; }

.site-header__burger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}
.site-header__burger svg { width: 24px; height: 24px; }

/* ═══════════════════════════════════════════════════════════
   5. GLOBAL BUTTONS
══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.2;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(2px); }

.btn-primary {
    background: var(--text-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: #1e293b;
    color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--blue-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--blue-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: var(--surface-bg);
    color: var(--text-primary);
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
    background: var(--page-bg);
    border-color: #cbd5e1;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   6. GLOBAL BADGES
══════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-gray  { background: var(--page-bg); color: var(--text-secondary); border: 1px solid var(--border-light); }

/* ═══════════════════════════════════════════════════════════
   7. FOOTER
══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--dark-bg);
    color: #94A3B8;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-8);
    padding: var(--space-16) 0 var(--space-12);
}
.site-footer__brand-name {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    text-decoration: none;
    margin-bottom: var(--space-4);
}
.site-footer__brand-name svg { width: 22px; height: 22px; color: var(--cyan-accent); }
.site-footer__brand-name:hover { color: #FFFFFF; }

.site-footer__desc {
    font-size: 14px; /* Minimum desktop readable size */
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: var(--space-6);
}
.site-footer__independent {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 13px;
    color: #64748b;
}

.site-footer__col-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    margin-bottom: var(--space-4);
}
.site-footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__links a { font-size: 14px; color: #94A3B8; text-decoration: none; transition: color 0.2s; }
.site-footer__links a:hover { color: #FFFFFF; }
.site-footer__links a.accent { color: var(--cyan-accent); }

.site-footer__bottom {
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.site-footer__copy { font-size: 13px; color: #64748b; }
.site-footer__disclaimer { font-size: 12.5px; color: #475569; max-width: 500px; text-align: right; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════
   8. RESPONSIVE (Header & Footer)
══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .site-header__nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--surface-bg);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-4) 32px var(--space-6);
        box-shadow: var(--shadow-md);
        gap: 0;
    }
    .site-header__nav.open { display: flex; }
    .site-header__nav > a, .nav-dropdown__trigger {
        width: 100%;
        padding: 0.75rem 0;
        font-size: 15px;
    }
    .nav-dropdown__menu { position: static; box-shadow: none; border: none; padding-left: 1rem; opacity: 1; visibility: visible; transform: none; }
    .btn-cta-nav { width: 100%; justify-content: center; margin-top: 0.5rem; padding: 0.75rem; }
    .nav-icon-btn { display: none; }
    .site-header__burger { display: block; }
}
@media (max-width: 900px) {
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-12) var(--space-6); }
    .site-footer__bottom { flex-direction: column; }
    .site-footer__disclaimer { text-align: left; }
}
@media (max-width: 480px) {
    .site-header__inner { padding: 0 20px; }
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   9. LEGACY UTILITIES (Preserved ONLY for internal pages)
══════════════════════════════════════════════════════════════ */
.d-flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-muted { color: var(--text-secondary); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.rounded-lg { border-radius: var(--radius-lg); }
.card { background: var(--surface-bg); border: 1px solid var(--border-light); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.card-body { padding: var(--space-6); }
.section { padding: 88px 0; }
.page-hero { padding: 80px 0; border-bottom: 1px solid var(--border-light); }
/* ═══════════════════════════════════════════════════════════
   MEGA MENU & SEARCH MODAL (Phase 10)
══════════════════════════════════════════════════════════════ */
.mega-menu-wrapper {
    position: static;
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    background: var(--surface-bg);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    transform: translateY(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}
.nav-dropdown.mega-menu-wrapper:hover .mega-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.mega-menu-grid {
    display: flex;
    max-width: var(--container-w);
    margin: 0 auto;
    gap: 2rem;
    padding: 0 1.5rem;
}
.mega-menu-col {
    flex: 1;
}
.mega-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.mega-link {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem !important;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary) !important;
    transition: background 0.15s;
}
.mega-link:hover {
    background: var(--page-bg) !important;
}
.mega-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.05);
    color: var(--blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mega-link-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.mega-link-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* SEARCH MODAL */
.search-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.search-modal.active {
    opacity: 1;
    visibility: visible;
}
.search-modal__backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(7, 17, 31, 0.6);
    backdrop-filter: blur(4px);
}
.search-modal__content {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: var(--surface-bg);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transform: translateY(-20px);
    transition: transform 0.2s;
    margin: 0 1.5rem;
}
.search-modal.active .search-modal__content {
    transform: translateY(0);
}
.search-modal__header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
}
.search-modal__header svg {
    color: var(--text-tertiary);
}
#global-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
    color: var(--text-primary);
}
.search-modal__close {
    background: var(--page-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}
.search-modal__body {
    max-height: 50vh;
    overflow-y: auto;
}
.search-results-group {
    padding: 1rem;
}
.search-results-group h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    gap: 1rem;
}
.search-result-item:hover, .search-result-item.focused {
    background: var(--page-bg);
}
.search-result-type {
    font-size: 0.7rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-primary);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.search-result-title {
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .mega-menu {
        position: static;
        width: auto;
        border: none;
        box-shadow: none;
        padding: 0;
        display: none;
    }
    .nav-dropdown.mega-menu-wrapper.open .mega-menu {
        display: block;
    }
    .mega-menu-grid {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    .search-modal {
        padding-top: 0;
    }
    .search-modal__content {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100%;
    }
    .search-modal__body {
        max-height: calc(100vh - 65px);
    }
}

/* ═══════════════════════════════════════════════════════════
   11. GLOSSARY TOOLTIPS
══════════════════════════════════════════════════════════════ */
.dpdp-glossary-term {
    border-bottom: 2px dotted var(--blue-primary);
    cursor: help;
    position: relative;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.2s ease;
}

.dpdp-glossary-term:hover {
    color: var(--blue-primary);
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 2px;
}

.dpdp-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background-color: #0F172A;
    color: #fff;
    text-align: left;
    border-radius: var(--radius-md);
    padding: 1rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    pointer-events: none;
}

.dpdp-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #0F172A transparent transparent transparent;
}

.dpdp-glossary-term:hover .dpdp-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s, transform 0.2s;
}

.dpdp-tooltip strong {
    display: block;
    color: var(--cyan-accent);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════
   12. PRINT AS LEGAL DOCUMENT
══════════════════════════════════════════════════════════════ */
@media print {
    body * {
        visibility: hidden;
    }
    .article-content, .article-content *, 
    .tpl-doc-container, .tpl-doc-container * {
        visibility: visible;
    }
    .article-content, .tpl-doc-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        color: #000;
        background: #fff;
    }
    
    /* Hide unwanted elements inside the printable area */
    .site-header, .site-footer, .tpl-doc-header, .btn-group, .share-buttons, button {
        display: none !important;
    }
    
    a {
        text-decoration: none !important;
        color: #000 !important;
    }
}
