/* ============================================================
   Legal documents — shared stylesheet
   Used by privacy policy, cookies policy and terms of service.
   Matches FitFormiq landing page visual language.
   ============================================================ */

:root {
    --lg-bg: #EDF2F4;
    --lg-surface: #ffffff;
    --lg-text: #1f2430;
    --lg-text-muted: #5b6476;
    --lg-border: #dde3ea;
    --lg-primary: #EF6C00;
    --lg-accent: #6C63FF;
    --lg-radius: 14px;
    --lg-shadow: 0 8px 32px rgba(23, 30, 50, 0.08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--lg-bg);
    color: var(--lg-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
}

.lg-header {
    position: sticky;
    top: 0;
    background: rgba(237, 242, 244, 0.92);
    backdrop-filter: saturate(1.2) blur(8px);
    -webkit-backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid var(--lg-border);
    z-index: 20;
}

.lg-header-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lg-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.lg-brand img {
    height: 28px;
    width: auto;
    display: block;
}

.lg-brand-tagline {
    font-size: 12px;
    color: var(--lg-text-muted);
    font-weight: 500;
}

.lg-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.lg-lang {
    display: inline-flex;
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: 999px;
    padding: 2px;
}

.lg-lang a {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lg-text-muted);
    text-decoration: none;
}

.lg-lang a.active {
    background: var(--lg-text);
    color: #fff;
}

.lg-back {
    font-size: 13px;
    color: var(--lg-text-muted);
    text-decoration: none;
    font-weight: 500;
}

.lg-back:hover { color: var(--lg-text); }

main.lg-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.lg-doc {
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: var(--lg-radius);
    box-shadow: var(--lg-shadow);
    padding: 40px 48px;
}

@media (max-width: 640px) {
    .lg-doc { padding: 28px 22px; }
    main.lg-main { padding: 24px 14px 60px; }
}

.lg-doc h1 {
    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    color: var(--lg-text);
}

.lg-doc .lg-meta {
    color: var(--lg-text-muted);
    font-size: 13px;
    margin: 0 0 32px;
}

.lg-doc h2 {
    font-size: 19px;
    line-height: 1.35;
    margin: 36px 0 10px;
    color: var(--lg-text);
}

.lg-doc h3 {
    font-size: 16px;
    margin: 22px 0 6px;
    color: var(--lg-text);
}

.lg-doc p,
.lg-doc li {
    color: var(--lg-text);
    font-size: 15px;
    line-height: 1.7;
}

.lg-doc p { margin: 0 0 12px; }

.lg-doc ul,
.lg-doc ol { padding-left: 22px; margin: 0 0 16px; }

.lg-doc li { margin: 4px 0; }

.lg-doc a {
    color: var(--lg-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.lg-doc a:hover { color: var(--lg-primary); }

.lg-doc strong { font-weight: 600; }

.lg-doc .lg-callout {
    background: #fff8f1;
    border: 1px solid #ffe2c6;
    border-left: 4px solid var(--lg-primary);
    padding: 14px 18px;
    border-radius: 10px;
    margin: 18px 0;
    font-size: 14px;
    color: #663200;
}

.lg-doc .lg-table-wrap {
    overflow-x: auto;
    margin: 12px 0 20px;
    border: 1px solid var(--lg-border);
    border-radius: 10px;
}

.lg-doc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lg-doc th,
.lg-doc td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--lg-border);
    vertical-align: top;
}

.lg-doc th {
    background: #f6f9fb;
    font-weight: 600;
    font-size: 13px;
    color: var(--lg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lg-doc tr:last-child td { border-bottom: none; }

.lg-doc hr {
    border: none;
    border-top: 1px solid var(--lg-border);
    margin: 28px 0;
}

.lg-toc {
    background: #f6f9fb;
    border: 1px solid var(--lg-border);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 0 0 28px;
    font-size: 14px;
}

.lg-toc-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--lg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
}

.lg-toc ol { padding-left: 20px; margin: 0; }
.lg-toc li { margin: 2px 0; font-size: 14px; }
.lg-toc a { text-decoration: none; color: var(--lg-text); }
.lg-toc a:hover { color: var(--lg-accent); text-decoration: underline; }

.lg-footer {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--lg-text-muted);
    line-height: 1.6;
}

.lg-footer a { color: var(--lg-text-muted); text-decoration: underline; }
.lg-footer a:hover { color: var(--lg-text); }
