/* legal-pages.css */

/* Import root variables from main-styles.css or phantom-styles.css for consistency */
/* Ensure main-styles.css or phantom-styles.css is linked BEFORE this file in HTML */
:root {
    --background-dark: #0a0a0a;
    --surface-color: #181818;
    --text-primary: #e9e9e9;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
    --accent-blue: #00BFFF;
    --primary-glow: rgba(0, 191, 255, 0.7);
}

/* General body styling for consistency with the main site's dark theme */
body {
    background: linear-gradient(to bottom, var(--background-dark), var(--background-gradient-end, #111));
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section for legal pages - consistent with main site's hero */
.hero-section {
    text-align: center;
    padding: 100px 20px 60px 20px;
    position: relative;
    background-color: var(--background-dark); /* Ensure dark background */
    border-bottom: 1px solid var(--border-color);
}

.hero-section h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    background: linear-gradient(90deg, #fff, #c0c0c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); /* Subtle glow */
}

.hero-section .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    max-width: 850px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Content Section Styling for readability and centering */
.content-section {
    padding: 60px 20px;
    background-color: var(--surface-color); /* Dark surface for content */
    color: var(--text-primary);
    border-radius: 12px;
    margin: 40px auto; /* Add margin for spacing from header/footer */
    max-width: 900px; /* Max width for content readability */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3); /* Soft shadow */
    border: 1px solid var(--border-color); /* Subtle border */
}

.content-wrapper {
    text-align: left; /* Keep text left-aligned within the wrapper for readability */
    padding: 0 20px; /* Internal padding */
}

.content-wrapper h2 {
    font-size: 2em;
    color: var(--accent-blue); /* Use accent color for section headings */
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.3); /* Subtle blue glow */
}

.content-wrapper h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px; /* Short underline for headings */
    height: 3px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

.content-wrapper h3 {
    font-size: 1.5em;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-wrapper p {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.content-wrapper ul {
    list-style: disc; /* Standard disc for lists */
    padding-left: 25px;
    margin-bottom: 20px;
}

.content-wrapper ul li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-wrapper ul li strong {
    color: var(--text-primary); /* Highlight strong text */
}

.content-wrapper a {
    color: var(--accent-blue); /* Accent color for links */
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.content-wrapper a:hover {
    color: #fff; /* White on hover */
    text-shadow: 0 0 8px var(--primary-glow); /* Glow on hover */
}

/* Footer - Ensure consistency with main site */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    background-color: var(--background-dark);
}

footer a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-section {
        margin: 20px auto;
        padding: 40px 15px;
    }

    .content-wrapper h2 {
        font-size: 1.8em;
    }

    .content-wrapper h3 {
        font-size: 1.3em;
    }

    .content-wrapper p, .content-wrapper ul li {
        font-size: 0.95em;
    }
}
