/* SeenLabs Legal Hub - Clean & Readable Design */

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --accent: #0f4c81;
    --accent-hover: #0d3d6b;
    --border: #e8e8e8;
    --card-bg: #fafafa;
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Header - Logo left, minimal */
.header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.logo:hover {
    opacity: 0.8;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #ccc;
}

.breadcrumbs .current {
    color: var(--text);
}

/* Typography */
h1 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Last Updated */
.last-updated {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.375rem;
}

/* Policy Cards (Hub Page) */
.policy-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
}

.policy-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s;
}

.policy-card:hover {
    border-color: var(--accent);
    background: var(--card-bg);
}

.policy-card-content {
    flex: 1;
}

.policy-card h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text);
}

.policy-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.policy-card-arrow {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-left: 1rem;
}

.policy-card:hover .policy-card-arrow {
    color: var(--accent);
}

/* Table of Contents (Subpages) */
.toc {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.toc-title {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 2rem;
}

.toc li {
    margin-bottom: 0.375rem;
    break-inside: avoid;
}

.toc a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.toc a:hover {
    color: var(--accent);
}

/* Legal Content Sections */
.legal-content {
    font-size: 0.9375rem;
}

.legal-content h2 {
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Emphasis blocks */
.highlight-box {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border-left: 3px solid var(--accent);
    font-size: 0.875rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.8125rem;
}

th, td {
    padding: 0.625rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    background: var(--card-bg);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Contact Info */
.contact-info {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.contact-info strong {
    color: var(--text);
}

/* Placeholder Notice (Development Only) */
.placeholder-notice {
    padding: 1.5rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    margin: 2rem 0;
}

.placeholder-notice h3 {
    font-size: 0.875rem;
    color: #92400e;
    margin: 0 0 0.5rem 0;
}

.placeholder-notice p {
    font-size: 0.8125rem;
    color: #78350f;
    margin: 0;
}

/* Hub page intro */
.hub-intro {
    margin-bottom: 2rem;
}

.hub-intro p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Print Styles */
@media print {
    body {
        font-size: 11pt;
        line-height: 1.5;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .header,
    .toc,
    .breadcrumbs {
        display: none;
    }

    h2 {
        break-after: avoid;
        border-top: none;
        padding-top: 0;
    }

    a {
        color: inherit;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem 1rem 3rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    .toc ul {
        columns: 1;
    }

    .policy-card {
        padding: 1rem 1.25rem;
    }
}
