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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.header-content .tagline {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Main Content */
main {
    min-height: calc(100vh - 300px);
}

.content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Privacy Policy & Terms of Service Articles */
.privacy-policy,
.terms-of-service {
    line-height: 1.8;
}

.privacy-policy .last-updated,
.terms-of-service .last-updated {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Warning Box (Terms) */
.warning-box {
    background-color: #FFF3E0;
    border: 2px solid #FF9800;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.warning-box h3 {
    color: #E65100;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.warning-box p {
    color: #E65100;
    margin-bottom: 0;
    font-weight: 600;
}

/* Privacy Summary Box */
.privacy-summary-box {
    background-color: #E8F5E9;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.privacy-summary-box h3 {
    color: #2E7D32;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.privacy-summary-box p {
    color: #2E7D32;
    font-weight: 600;
}

.privacy-summary-box ul {
    margin-top: 10px;
    margin-bottom: 0;
}

.privacy-summary-box ul li {
    color: #2E7D32;
}

/* Footer Navigation Links */
.footer-links {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    font-size: 0.95rem;
}

.footer-links a {
    margin: 0 10px;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    color: #666;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* Ordered Lists (for Terms) */
ol {
    margin-left: 25px;
    margin-bottom: 15px;
    counter-reset: item;
}

ol li {
    margin-bottom: 8px;
    color: #555;
}

ol li:before {
    content: counter(item) ". ";
    counter-increment: item;
    color: #2196F3;
    font-weight: bold;
    margin-right: 8px;
}

/* Sections */
section {
    margin-bottom: 35px;
}

section:last-of-type {
    margin-bottom: 0;
}

/* Headings */
h2 {
    font-size: 1.6rem;
    color: #1976D2;
    margin-bottom: 15px;
    margin-top: 30px;
    font-weight: 600;
    border-left: 4px solid #2196F3;
    padding-left: 15px;
}

h3 {
    font-size: 1.1rem;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Paragraphs */
p {
    margin-bottom: 15px;
    color: #555;
}

/* Lists */
ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

ul li {
    margin-bottom: 8px;
    color: #555;
}

ul li:before {
    content: "▸ ";
    color: #2196F3;
    font-weight: bold;
    margin-right: 8px;
}

/* Links */
a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #1976D2;
    border-bottom: 1px solid #1976D2;
}

/* Policy Footer */
.policy-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Site Footer */
.site-footer {
    background-color: #f9f9f9;
    color: #666;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 40px 15px;
        margin-bottom: 30px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content .tagline {
        font-size: 1rem;
    }

    .content {
        padding: 25px;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 1.4rem;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    h3 {
        font-size: 1rem;
        margin-top: 15px;
    }

    p {
        font-size: 0.95rem;
    }

    ul {
        margin-left: 20px;
    }

    ul li {
        font-size: 0.95rem;
    }

    section {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    header {
        padding: 30px 10px;
        margin-bottom: 20px;
    }

    .header-content h1 {
        font-size: 1.6rem;
    }

    .header-content .tagline {
        font-size: 0.9rem;
    }

    .content {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 4px;
    }

    h2 {
        font-size: 1.2rem;
        padding-left: 12px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    h3 {
        font-size: 0.95rem;
        margin-top: 12px;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    ul {
        margin-left: 15px;
    }

    ul li {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    section {
        margin-bottom: 20px;
    }

    .policy-footer {
        margin-top: 30px;
        padding-top: 20px;
        font-size: 0.85rem;
    }

    .site-footer {
        padding: 20px 10px;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }

    header {
        page-break-after: avoid;
    }

    section {
        page-break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .site-footer {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    a {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .content {
        background-color: #2a2a2a;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .privacy-policy .last-updated {
        color: #aaa;
        border-bottom-color: #444;
    }

    h2 {
        color: #64B5F6;
    }

    h3 {
        color: #e0e0e0;
    }

    p {
        color: #ccc;
    }

    ul li {
        color: #ccc;
    }

    a {
        color: #64B5F6;
    }

    a:hover {
        color: #90CAF9;
    }

    .policy-footer {
        color: #888;
        border-top-color: #444;
    }

    .site-footer {
        background-color: #1f1f1f;
        color: #999;
        border-top-color: #444;
    }
}
