/* static/css/legal.css */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Core Palette - Sharp & High Contrast */
    --color-dark: #0D0D0D; /* Near black for depth, less harsh than #000 */
    --color-light: #F9F9F9; /* Crisp, slightly off-white */

    /* UPDATED ACCENT COLORS TO SILVER */
    --color-accent: #D1D1D1; /* Bright, clean silver */
    --color-accent-darker: #B8B8B8; /* Slightly darker silver for hovers */
    /* --color-accent-rgb will be populated by the JS helper with RGB values of #D1D1D1 */

    --color-text-dark-primary: #E0E0E0; /* Light text for dark backgrounds */
    --color-text-dark-secondary: #A0A0A0; /* Slightly darker light text */
    --color-text-light-primary: #1A1A1A; /* For text on light/accent backgrounds */

    /* Typography */
    --font-primary: 'Manrope', sans-serif; /* Versatile, modern */
    --font-secondary: 'Space Grotesk', sans-serif; /* For impactful headlines/accents */

    /* Spacing & Layout */
    --section-padding: clamp(80px, 12vh, 160px); /* Responsive vertical padding */
    --container-width: 1240px;
    --border-radius-sharp: 6px; /* Sharper */
    --cubic-bezier: cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* Add or update this rule */
body {
    background-color: var(--color-dark); /* Ensure background is dark */
    color: var(--color-text-dark-primary); /* Ensure base text is light */
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh; /* Ensure body takes full height */
    display: flex;
    flex-direction: column;
}


/* Adjustments specific to legal pages for better readability */

.legal-page {
    /* Adjust top/bottom padding for legal pages, similar to guide, but can be tweaked */
    padding: 100px 20px; /* Consistent with instructions-page padding */
}

/* Specific styling for the content area of legal documents */
.legal-content {
    /* Ensure maximum width for good readability of long paragraphs */
    /*margin: 0 auto; !* Center the content within the instructions-card *!*/
    /*padding: clamp(2em, 5vw, 4em); !* Inherit/re-apply padding from instructions-content *!*/
}

/* Adjust general text styles for legal content if different from guide.css */
.legal-content p,
.legal-content li,
.legal-content table {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1em;
}

/* Headings within legal content (Markdown h1, h2, h3, h4) */
/* Markdown will generate H1, H2, H3, etc. for titles and sections.
   Adjust their appearance to fit the legal document structure. */
.legal-content h1 { /* This will be the main title from Markdown, rendered inside the card */
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-heading);
    margin: 1.5em 0 0.75em 0; /* Adjust spacing as needed */
    letter-spacing: -1px;
}

.legal-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2rem); /* Slightly smaller than main guide h2, no step counter */
    color: var(--text-primary);
    margin-top: 2.5em; /* More space above new sections */
    margin-bottom: 1em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.legal-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-primary);
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.legal-content h4 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-primary);
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    font-weight: 500;
}

/* Lists within legal content (Markdown ul and ol) */
.legal-content ul,
.legal-content ol {
    padding-left: 25px; /* More padding for list items */
    margin: 1.5em 0;
}

.legal-content li {
    margin-bottom: 0.8em; /* Slightly tighter line spacing for list items */
}

/* For ordered lists, ensure numbers are visible and styled */
.legal-content ol li::marker {
    color: var(--accent-color); /* Matches your guide's numbered lists */
    font-weight: bold;
}

/* For unordered lists, ensure dashes are visible and styled */
.legal-content ul li::marker {
    content: '—';
    color: var(--accent-color);
    font-weight: bold;
}

/* Ensure links are clearly visible */
.legal-content a {
    color: var(--accent-color); /* Make links stand out */
    text-decoration: underline; /* Important for discoverability */
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: var(--text-primary); /* Change color on hover */
}

/* Styling for tables (if you include them in Markdown) */
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

.legal-content th,
.legal-content td {
    border: 1px solid var(--card-border-color);
    padding: 12px 15px;
    text-align: left;
    color: var(--text-secondary);
}

.legal-content th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-weight: 600;
}

/* Styling for inline `code` from markdown within legal text */
.legal-content :not(pre) > code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--accent-color);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    font-weight: 500;
}

/* Professional Callout Box (for blockquotes in legal text) */
.legal-content blockquote {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border: none;
    background-color: rgba(0, 122, 255, 0.05);
    border-left: 3px solid var(--accent-color);
    padding: 1.5em;
    margin: 3em 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.legal-content blockquote p {
    margin: 0;
    color: var(--text-primary);
}

.legal-content blockquote::before {
    content: '\f05a'; /* Font Awesome info-circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 4px;
}

/* Media queries for responsiveness (adapt from guide.css) */
@media (max-width: 480px) {
    .legal-page {
        padding: 32px 10px;
    }

    .instructions-card { /* This will affect both guide and legal pages */
        margin: 0;
        width: 100%;
        border-radius: 10px;
    }

    .legal-content {
        padding: 1em 1em; /* Adjust padding for very small screens */
    }
}



html {
  scroll-padding-top: 96px; /* or the height of your fixed nav */
}

.legal-content strong {
    font-weight: 700; /* Or 'bold' */
    color: var(--color-text-dark-primary); /* Optional: Ensures it has the primary text color */
}
