/* Cookie pop-up, footer legal links, and the legal pages (includes/legal.php). */

/* ------------------------------------------------------------ pop-up */
.tcc {
    position: fixed;
    z-index: 2147483000;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 30rem;
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.tcc.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .tcc {
        transition: none;
    }
}

.tcc-inner {
    background: var(--background, #fff);
    color: var(--foreground, #0a0a0a);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    border-top: 4px solid var(--primary, #1847b8);
    border-radius: 0.75rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    padding: 1.25rem 1.25rem 1.1rem;
    font-family: var(--font-sans, system-ui, sans-serif);
}

.tcc-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tcc-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted-foreground, #555);
}

.tcc-links {
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    color: var(--muted-foreground, #555);
}

.tcc-links a {
    color: var(--primary, #1847b8);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tcc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.tcc-btn {
    flex: 1 1 9rem;
    min-height: 2.75rem;
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.tcc-btn-primary {
    background: var(--primary, #1847b8);
    color: #fff;
    border: 2px solid var(--primary, #1847b8);
}

.tcc-btn-primary:hover {
    filter: brightness(1.1);
}

.tcc-btn-ghost {
    background: transparent;
    color: var(--foreground, #0a0a0a);
    border: 2px solid var(--foreground, #0a0a0a);
}

.tcc-btn-ghost:hover {
    background: var(--foreground, #0a0a0a);
    color: var(--background, #fff);
}

.tcc-btn:focus-visible,
.tcc-links a:focus-visible,
.tcc-legal a:focus-visible,
.tcc-legal button:focus-visible {
    outline: 2px solid var(--primary, #1847b8);
    outline-offset: 2px;
}

/* ----------------------------------------------------- footer links */
.tcc-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-top: 1.25rem;
    font-size: 0.75rem;
}

.tcc-legal a,
.tcc-legal button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--muted-foreground, #666);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.tcc-legal a:hover,
.tcc-legal button:hover {
    color: var(--foreground, #0a0a0a);
}

/* -------------------------------------------------------- legal pages */
html[lang="bg"] .tlg-doc[data-tlg-lang="en"],
html:not([lang="bg"]) .tlg-doc[data-tlg-lang="bg"] {
    display: none;
}

.tlg {
    max-width: 50rem;
    margin: 0 auto;
    padding: 3rem 1rem 4rem;
    color: var(--foreground);
}

@media (min-width: 640px) {
    .tlg {
        padding: 4rem 1.5rem 5rem;
    }
}

.tlg-admin-note {
    margin: 0 0 2rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #fff4d6;
    color: #6b4b00;
    font-size: 0.875rem;
}

.tlg-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.tlg-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
}

.tlg-updated {
    margin: 0.75rem 0 2rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.tlg-toc {
    margin: 0 0 2.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    border-radius: 0.75rem;
}

.tlg-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    columns: 2 14rem;
    column-gap: 2rem;
    font-size: 0.9rem;
    line-height: 1.9;
}

.tlg-doc section {
    margin: 0 0 2.25rem;
    scroll-margin-top: 7rem;
}

.tlg-doc h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.tlg-doc p,
.tlg-doc li {
    font-size: 1rem;
    line-height: 1.7;
}

.tlg-doc p {
    margin: 0 0 0.75rem;
}

.tlg-doc ul {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.tlg-doc ol {
    list-style: decimal;
}

.tlg-doc li {
    margin: 0 0 0.4rem;
}

.tlg-doc a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tlg-details {
    list-style: none !important;
    padding-left: 0 !important;
}

.tlg-table {
    overflow-x: auto;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    border-radius: 0.75rem;
}

.tlg-table table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tlg-table th,
.tlg-table td {
    padding: 0.7rem 0.9rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.12));
}

.tlg-table tr:last-child td {
    border-bottom: 0;
}

.tlg-table th {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.tlg-table code {
    font-size: 0.8rem;
    word-break: break-all;
}

.tlg-btn {
    min-height: 2.75rem;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    border: 2px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
