/*-------------------------
--- css/style-legal.css ---
-------------------------*/
/* === GLOBAL VARIABLES === */
/* Variables are now primarily defined in style-shared.css */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.legal-page {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: var(--text-secondary); /* Use generic variable */
    background-color: var(--bg-primary); /* Use generic variable */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--theme-transition);
}

/* === LEGAL HEADER === */
.header-legal {
    background-color: rgba(var(--bg-secondary-rgb, 30, 30, 30), 0.9); /* Use RGB var */
    backdrop-filter: blur(8px);
    padding: 0; /* Use height */
    border-bottom: 1px solid var(--border-color); /* Use generic variable */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height-legal, 60px); /* Use var with fallback */
    display: flex;
    align-items: center;
    transition: var(--theme-transition);
}
.nav-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo-legal { display: flex; align-items: center; text-decoration: none; }
.logo-legal img { max-height: 30px; margin-right: 0.8rem; filter: brightness(1.1); transition: filter 0.3s ease; }
.logo-legal span { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); } /* Use generic variable */
.nav-legal-links { display: flex; gap: 0.8rem; align-items: center;}

/* Buttons already use variables via style-shared.css light theme overrides */
.btn-primary-legal, .btn-secondary-legal {
    padding: 0.4rem 0.9rem; border-radius: 15px; font-size: 0.85rem; font-weight: 600;
    text-decoration: none; transition: all 0.3s ease, var(--theme-transition); display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-primary-legal { background-color: var(--primary-color); color: var(--bg-primary); }
.btn-primary-legal:hover { background-color: var(--secondary-color); transform: translateY(-1px); }
.btn-secondary-legal { background-color: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-secondary-legal:hover { background-color: var(--bg-secondary); color: var(--text-primary); }


/* === LEGAL CONTENT AREA === */
.container-legal {
    width: 95%;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.legal-content {
    flex-grow: 1;
    padding: 3rem 0;
}

.legal-content article section { margin-bottom: 2.5rem; }

.legal-content h1 {
    font-size: 2rem;
    color: var(--text-primary); /* Use generic variable */
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color); /* Use generic variable */
    padding-bottom: 0.8rem;
    transition: var(--theme-transition);
}
.legal-content .effective-date {
    font-size: 0.9rem;
    color: var(--text-muted); /* Use generic variable */
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--text-primary); /* Use generic variable */
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color); /* Use generic variable */
    transition: var(--theme-transition);
}
.legal-content h3 {
    font-size: 1.2rem;
    color: var(--text-secondary); /* Use generic variable */
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    transition: var(--theme-transition);
}

.legal-content p { margin-bottom: 1rem; color: var(--text-secondary); } /* Use generic variable */
.legal-content ul, .legal-content ol { margin-bottom: 1rem; padding-left: 25px; color: var(--text-secondary); } /* Use generic variable */
.legal-content ul li, .legal-content ol li { margin-bottom: 0.6rem; }
.legal-content ul ul, .legal-content ol ol { margin-top: 0.5rem; margin-bottom: 0.5rem; padding-left: 20px; }
.legal-content li > p { margin-bottom: 0.3rem; }

.legal-content a { color: var(--link-color); text-decoration: none; transition: color 0.3s ease; } /* Use generic variable */
.legal-content a:hover { text-decoration: underline; color: var(--link-hover); } /* Use generic variable */

.legal-content strong { font-weight: 600; color: var(--text-primary); } /* Use generic variable */
.legal-content em { font-style: italic; }

.legal-content code {
    font-family: 'Fira Code', monospace, monospace;
    background-color: var(--bg-tertiary); /* Use generic variable */
    color: var(--secondary-color); /* Use generic variable */
    padding: 0.2em 0.4em; border-radius: 4px; font-size: 0.9em;
    border: 1px solid var(--border-color); /* Use generic variable */
    word-break: break-all;
    transition: var(--theme-transition);
}

/* Note Boxes */
.note {
    padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 8px;
    border-left-width: 5px; border-style: solid;
    transition: var(--theme-transition);
}
.note p:last-child { margin-bottom: 0; }
.note i { margin-right: 0.6rem; }
.note ul { margin-top: 0.5rem; margin-bottom: 0.2rem;}

.note-info {
    background-color: rgba(var(--primary-color-rgb), 0.08); /* Use RGB var */
    border-color: var(--primary-color); /* Use generic variable */
    color: var(--text-secondary); /* Use generic variable */
}
.note-info strong { color: var(--primary-color); } /* Use generic variable */

.note-warning {
    /* Define RGB for warning */
    --warning-color-rgb-dark: 255, 167, 38;
    --warning-color-light: #ffc107;
    --warning-color-rgb-light: 255, 193, 7;
    --warning-color: #ffa726;
    --warning-color-rgb: var(--warning-color-rgb-dark);

    background-color: rgba(var(--warning-color-rgb), 0.1);
    border-color: var(--warning-color);
    color: var(--text-secondary); /* Use generic variable */
}
.note-warning strong { color: var(--warning-color); }
body.light-theme .note-warning {
    --warning-color: var(--warning-color-light);
    --warning-color-rgb: var(--warning-color-rgb-light);
}

/* Highlight defined in style-shared.css */

/* === LEGAL FOOTER - Uses Shared Footer Styles from style-shared.css === */

/* === RESPONSIVE (Legal Pages) === */
@media screen and (max-width: 768px) {
    .legal-content h1 { font-size: 1.8rem; }
    .legal-content h2 { font-size: 1.3rem; }
    .legal-content h3 { font-size: 1.1rem; }

    .nav-legal { flex-direction: column; gap: 0.8rem; height: auto; padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .nav-legal-links { width: 100%; justify-content: center; }
    .header-legal { height: auto; position: static; }
    .legal-content { padding: 2rem 0; }
}