/*
 * Compliance Pages Common Styles
 * Shared CSS for privacy.html, terms.html, cookies.html, contact.html
 * Ironsmith.io - 2025
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Header Styles */
.header {
    background: #1a1a2e;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Typography */
h1 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    border-bottom: 3px solid #4a90e2;
    padding-bottom: 0.5rem;
}

h2 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-left: 4px solid #4a90e2;
    padding-left: 1rem;
}

h3 {
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

h4 {
    color: #34495e;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

ul, ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: #2c3e50;
    font-weight: 600;
}

a {
    color: #4a90e2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Dates and Subtitles */
.effective-date {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Table of Contents */
.toc {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    margin-left: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #4a90e2;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Info Boxes and Sections */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.info-box strong {
    color: #1565c0;
}

.info-section {
    background: #f0f4f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.info-section h3 {
    color: #2c3e50;
    margin-top: 0;
}

/* Product Section */
.product-section {
    background: #f0f4f8;
    border-left: 4px solid #4a90e2;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.product-section h3 {
    color: #4a90e2;
    margin-top: 0;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

.warning-box strong {
    color: #856404;
}

/* Response Time Box */
.response-time {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.response-time strong {
    color: #856404;
}

/* Contact Info Box */
.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-info h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Contact Grid (contact.html specific) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-card h3 {
    color: #4a90e2;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-card .email {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin: 0.5rem 0;
}

.contact-card .email:hover {
    color: #4a90e2;
    text-decoration: underline;
}

.contact-card .description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Cookie Table (cookies.html specific) */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.cookie-table th {
    background: #f0f4f8;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #4a90e2;
    font-weight: 600;
    color: #2c3e50;
}

.cookie-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e1e4e8;
}

.cookie-table tr:hover {
    background: #f8f9fa;
}

/* Hours Table (contact.html specific) */
.hours-table {
    margin-top: 1rem;
}

.hours-table div {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e4e8;
}

.hours-table div:last-child {
    border-bottom: none;
}

/* Utility Classes */
.all-caps {
    text-transform: uppercase;
    font-weight: 600;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    background: #f8f9fa;
    margin-top: 3rem;
}

.footer p {
    text-align: center;
    margin-bottom: 0;
}

.footer a {
    color: #4a90e2;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .container {
        margin: 1rem;
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cookie-table {
        font-size: 0.875rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }
}

/* Special Sections with Custom Colors */
.product-section.flavor-forge {
    background: #f0f4f8;
    border-left-color: #4a90e2;
}

.product-section.flavor-forge h3 {
    color: #4a90e2;
}

.product-section.wispshield {
    background: #f0f4f8;
    border-left-color: #4a90e2;
}

.product-section.wispshield h3 {
    color: #2c3e50;
}

.info-section.feedback {
    background: #e8f5e9;
}

.info-section.feedback h3 {
    color: #2e7d32;
}

.info-section.feedback a {
    color: #2e7d32;
}
