/* BioHackMe Legal Website Styles */

:root {
    --primary-color: #0066CC;
    --secondary-color: #00C853;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    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: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Main Content */
main {
    padding: 60px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Link Cards */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.link-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.link-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: #0052a3;
}

.meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 15px;
}

/* Quick Facts */
.quick-facts {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
}

.quick-facts h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.fact {
    text-align: center;
}

.icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.fact h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.fact p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 40px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
}

.contact h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

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

/* Legal Document Styles */
.legal-document {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.legal-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.legal-header .meta {
    font-size: 0.95rem;
    color: var(--text-light);
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.toc {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.toc h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.toc ol {
    margin-left: 20px;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.legal-section {
    margin-bottom: 50px;
}

.legal-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    padding-top: 20px;
}

.legal-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 25px;
    color: var(--text-dark);
}

.legal-section h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 20px;
    color: var(--text-dark);
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-section ul,
.legal-section ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.legal-section li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.legal-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-section em {
    color: var(--text-light);
}

.legal-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

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

.legal-section th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.legal-section tr:nth-child(even) {
    background-color: #fafafa;
}

.highlight {
    background-color: #fff3cd;
    padding: 20px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
    border-radius: 4px;
}

.warning {
    background-color: #f8d7da;
    padding: 20px;
    border-left: 4px solid #dc3545;
    margin: 20px 0;
    border-radius: 4px;
}

.info {
    background-color: #d1ecf1;
    padding: 20px;
    border-left: 4px solid #17a2b8;
    margin: 20px 0;
    border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

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

    .facts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.3rem;
    }

    .quick-facts,
    .contact {
        padding: 25px;
    }
}

/* Marketing Page Styles */

.marketing-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.marketing-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

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

.hero-marketing {
    background: linear-gradient(135deg, #0066CC 0%, #00C853 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.button-primary {
    background: white;
    color: var(--primary-color);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.button-secondary {
    background: transparent;
    color: white;
    padding: 16px 40px;
    border: 2px solid white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 20px;
    background: var(--bg-light);
}

.screenshots h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
}

.screenshot-img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.screenshot-img:hover {
    transform: scale(1.05);
}

.screenshot-caption {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Privacy Section */
.privacy-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0066CC 0%, #00C853 100%);
    color: white;
}

.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.privacy-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    opacity: 0.95;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.privacy-feature {
    text-align: center;
}

.privacy-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.privacy-feature h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.privacy-feature p {
    opacity: 0.9;
    line-height: 1.6;
}

.privacy-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.button-outline {
    background: transparent;
    color: white;
    padding: 14px 35px;
    border: 2px solid white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* How It Works */
.how-it-works {
    padding: 80px 20px;
    background: white;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 80px 20px;
    background: var(--bg-light);
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Download CTA */
.download-cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0066CC 0%, #00C853 100%);
    color: white;
    text-align: center;
}

.download-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.button-large {
    background: white;
    color: var(--primary-color);
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.app-store-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.download-note {
    margin-top: 20px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Marketing Footer */
.marketing-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Print Styles */
@media print {
    header, footer, .back-link {
        display: none;
    }

    .legal-document {
        padding: 0;
    }

    .legal-section {
        page-break-inside: avoid;
    }
}

/* Mobile Responsive for Marketing */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
        max-width: 300px;
    }

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

    .features-grid,
    .privacy-grid,
    .steps,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .privacy-cta {
        flex-direction: column;
        align-items: center;
    }

    .button-outline {
        width: 100%;
        max-width: 300px;
    }

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