/* TGM Panel Privacy Portal - Shared Styles */

:root {
    --primary-red: #D41D51;
    --primary-purple: #68499D;
    --gradient: linear-gradient(135deg, #D41D51 0%, #68499D 100%);
    --text-dark: #292929;
    --text-gray: #696969;
    --text-light: #a0a0a0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --success-green: #33C15E;
    --warning-orange: #f59e0b;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

/* Header */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text span {
    color: var(--primary-red);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

.nav-links a.active {
    border-bottom: 2px solid var(--primary-red);
}

/* Document Header */
.doc-header {
    background: var(--gradient);
    color: white;
    padding: 3rem 2rem;
}

.doc-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.doc-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.doc-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.doc-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Document Main Layout */
.doc-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

/* Sidebar Navigation */
.doc-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.doc-nav {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
}

.doc-nav-title {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.doc-nav a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
    transition: all 0.2s;
}

.doc-nav a:hover {
    color: var(--primary-red);
    border-left-color: var(--primary-red);
}

/* Document Content */
.doc-content {
    min-width: 0;
}

.doc-content section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.doc-content section:last-of-type {
    border-bottom: none;
}

.doc-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.doc-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
}

.doc-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1rem 0 0.5rem;
}

.doc-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.doc-content ul, .doc-content ol {
    color: var(--text-gray);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
}

.doc-content a {
    color: var(--primary-red);
    text-decoration: none;
}

.doc-content a:hover {
    text-decoration: underline;
}

/* Tables */
.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
}

.doc-content th,
.doc-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

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

.doc-content td {
    color: var(--text-gray);
}

.doc-content td.check {
    color: var(--success-green);
    font-weight: 600;
    text-align: center;
}

.doc-content td.cross {
    color: var(--text-light);
    text-align: center;
}

/* Info Boxes */
.info-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-purple);
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.info-box-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-box p,
.info-box ul {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.info-box ul:last-child,
.info-box p:last-child {
    margin-bottom: 0;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid var(--warning-orange);
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    color: #92400e;
}

.warning-box ul {
    color: #92400e;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(212, 29, 81, 0.1) 0%, rgba(104, 73, 157, 0.1) 100%);
    border: 1px solid rgba(212, 29, 81, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.highlight-box h4 {
    color: var(--primary-red);
    margin-top: 0;
}

.highlight-box p {
    margin-bottom: 0;
}

/* Contact Box */
.contact-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.contact-box p {
    margin-bottom: 0.75rem;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

/* Document Footer */
.doc-footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .doc-main {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        position: static;
        order: -1;
    }

    .doc-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .doc-nav a {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        padding: 0.35rem 0.75rem;
        background: var(--bg-white);
        border-radius: 6px;
        font-size: 0.8rem;
    }

    .doc-nav-title {
        width: 100%;
    }
}

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

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

    .doc-header h1 {
        font-size: 1.5rem;
    }

    .doc-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .doc-content table {
        display: block;
        overflow-x: auto;
    }
}
