/* FitFlow Pro 2025 - Legal Documents Styles with OKLCH Color System */

/* Your beautiful OKLCH color system */
:root {
    --background: oklch(0.9770 0.0059 239.8185);
    --foreground: oklch(0.3809 0.0137 256.7628);
    --card: oklch(1.0000 0 0);
    --card-foreground: oklch(0.3809 0.0137 256.7628);
    --primary: oklch(0.7181 0.0902 154.7298);
    --primary-foreground: oklch(1.0000 0 0);
    --secondary: oklch(0.9513 0.0101 238.5127);
    --secondary-foreground: oklch(0.4517 0.0110 258.3598);
    --muted: oklch(0.9674 0.0013 286.3752);
    --muted-foreground: oklch(0.5584 0.0099 264.4874);
    --accent: oklch(0.9340 0.0216 163.0415);
    --accent-foreground: oklch(0.3809 0.0137 256.7628);
    --border: oklch(0.9285 0.0027 286.3475);
    --input: oklch(0.9285 0.0027 286.3475);
    --ring: oklch(0.6174 0.0997 154.4308);
    --chart-1: oklch(0.6174 0.0997 154.4308);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --shadow-sm: 0px 4px 8px -1px hsl(0 0% 10.1961% / 0.10), 0px 1px 2px -2px hsl(0 0% 10.1961% / 0.10);
    --shadow-md: 0px 4px 8px -1px hsl(0 0% 10.1961% / 0.10), 0px 2px 4px -2px hsl(0 0% 10.1961% / 0.10);
    --shadow-lg: 0px 4px 8px -1px hsl(0 0% 10.1961% / 0.10), 0px 4px 6px -2px hsl(0 0% 10.1961% / 0.10);
    --shadow-xl: 0px 4px 8px -1px hsl(0 0% 10.1961% / 0.10), 0px 8px 10px -2px hsl(0 0% 10.1961% / 0.10);
}

/* Dark mode support */
.dark {
    --background: oklch(0.2183 0.0164 268.9014);
    --foreground: oklch(0.8731 0.0042 271.3639);
    --card: oklch(0.2880 0.0140 261.6979);
    --card-foreground: oklch(0.8731 0.0042 271.3639);
    --primary: oklch(0.6720 0.0801 168.6332);
    --primary-foreground: oklch(0.2183 0.0164 268.9014);
    --secondary: oklch(0.3435 0.0134 261.7289);
    --secondary-foreground: oklch(0.7196 0.0043 286.2915);
    --muted: oklch(0.2880 0.0140 261.6979);
    --muted-foreground: oklch(0.5584 0.0099 264.4874);
    --accent: oklch(0.3809 0.0137 256.7628);
    --accent-foreground: oklch(0.7196 0.0043 286.2915);
    --border: oklch(0.4517 0.0110 258.3598);
    --input: oklch(0.4517 0.0110 258.3598);
    --ring: oklch(0.6720 0.0801 168.6332);
    --chart-1: oklch(0.6720 0.0801 168.6332);
}

/* Стили для юридических документов */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    margin: 0;
    padding: 1rem;
}

.legal-document {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    line-height: 1.6;
}

.legal-document h1 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.legal-document .updated {
    color: var(--muted-foreground);
    font-style: italic;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.legal-document h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.legal-document h3 {
    color: var(--foreground);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-document p {
    margin-bottom: 1rem;
    color: var(--foreground);
}

.legal-document ul, .legal-document ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.legal-document li {
    margin-bottom: 0.5rem;
}

.legal-document strong {
    color: var(--foreground);
    font-weight: 600;
}

.legal-document .section {
    margin-bottom: 2rem;
}

.legal-document a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-document a:hover {
    color: var(--chart-1);
    text-decoration: underline;
}

/* Стили для таблицы cookie */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.cookie-table th {
    background-color: var(--muted);
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.875rem;
}

.cookie-table td {
    color: var(--foreground);
    font-size: 0.875rem;
}

.cookie-table tr:nth-child(even) {
    background-color: var(--muted);
}

.cookie-table tr:hover {
    background-color: var(--accent);
}

/* Стили для шаблона согласия */
.consent-template {
    margin: 2rem 0;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--foreground);
}

.consent-template p {
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.highlight {
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 0.125rem 0.25rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.instructions {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--accent);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--accent-foreground);
}

.instructions h2 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
}

.instructions ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.instructions li {
    margin-bottom: 0.8rem;
    color: var(--accent-foreground);
}

/* Кнопки и навигация */
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.download-button:hover {
    background-color: var(--primary);
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.download-button i {
    margin-right: 0.5rem;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--chart-1);
    text-decoration: underline;
}

/* Оглавление документа */
.document-toc {
    background-color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.document-toc h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.document-toc ol {
    counter-reset: item;
    list-style-type: none;
    margin-left: 0;
}

.document-toc li {
    counter-increment: item;
    margin-bottom: 0.5rem;
}

.document-toc li::before {
    content: counter(item) ". ";
    color: var(--primary);
    font-weight: 600;
}

.document-toc a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Дополнительные блоки */
.important-note {
    background-color: var(--accent);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--accent-foreground);
}

.important-note h4 {
    color: var(--primary);
    margin-top: 0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .legal-document {
        padding: 1.5rem;
        margin: 1rem;
    }

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

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

    .consent-template {
        padding: 1.5rem;
    }
}

/* Версионность документов */
.version-history {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.version-history h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.version-list {
    list-style-type: none;
    margin-left: 0;
}

.version-list li {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.version-date {
    color: var(--muted-foreground);
}

/* Переключатель между упрощенной и полной версией */
.version-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-radius: var(--radius-full);
    background-color: var(--muted);
    border: 1px solid var(--border);
    padding: 0.25rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.version-toggle button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: all 0.2s ease;
}

.version-toggle button.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Header navigation styles */
.header {
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

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

.nav-links a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-links a:hover {
    color: var(--primary);
    background-color: var(--accent);
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo h1 {
        font-size: 1.25rem;
    }
}

/* Упрощенная версия документа */
.simplified-content {
    display: none;
}

.simplified-content.active {
    display: block;
}

.full-content.hidden {
    display: none;
}

/* Печать документа */
@media print {
    header, footer, .back-link, .download-button, .version-toggle {
        display: none;
    }
    
    .legal-document {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
} 