/* =========================================
AraTechnics
Auteur: Arne (AraTechnics.be)
========================================= */

/* =========================================
Lokale Lettertypes (Self-Hosted)
========================================= */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('/assets/fonts/Roboto-Light.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/Roboto-Regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('/assets/fonts/Roboto-Bold.woff2') format('woff2');
}

/* =========================================
Globale Stijlen
========================================= */
body {
    font-family: 'Space Grotesk', 'Roboto', sans-serif;
    background-color: #050505;
    color: #f0f0f0;
    line-height: 1.8;
    padding: 1rem;
    font-weight: 400;
    /* Tekstselectie UIT (consistent met de rest van de site). */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Subtiel dotted-grid raster (IDE-look) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Custom Scrollbar voor de legale pagina */
body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-track {
    background: transparent;
}
body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
body::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
}

.legal-container {
    max-width: 900px;
    margin: 2rem auto;
    background-color: #0c0f0c;
    padding: 3rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* =========================================
Element Stijlen & Termly Overrides
========================================= */

/* De "Terug" knop */
.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 3rem;
    color: #00ff00;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #fff;
    transform: translateX(-5px);
}

/* De titels die Termly genereert */
h1, h2, h3, 
[data-custom-class='title'], 
[data-custom-class='heading_1'], 
[data-custom-class='heading_2'] {
    font-family: 'Space Grotesk', 'Roboto', sans-serif !important;
    color: #00ff00 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

h1, [data-custom-class='title'] {
    font-size: 2.5rem !important;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 1rem;
    margin-bottom: 2rem !important;
}

h2, [data-custom-class='heading_1'] {
    font-size: 1.5rem !important;
    margin-top: 3rem !important;
    border-left: 3px solid #00ff00;
    padding-left: 15px;
}

h3, [data-custom-class='heading_2'] {
    font-size: 1.2rem !important;
    margin-top: 2rem !important;
    color: #fff !important; /* Subheadings wit voor contrast */
}

/* De normale tekst */
p, li, span, div, [data-custom-class='body_text'] {
    font-family: 'Space Grotesk', 'Roboto', sans-serif !important;
    color: #c0c9c0 !important; /* Zelfde gedempte tekst als de rest van de site (--text-dim): 11.3:1 op het kader, was #a0a0a0 (7.4:1) */
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* De links IN de tekst (Table of contents etc) */
a, [data-custom-class='link'] {
    color: #00ff00 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-weight: 500 !important;
}

a:hover, [data-custom-class='link']:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Belangrijke blokken (Summary box etc) */
strong, b {
    color: #fff !important;
    font-weight: 700 !important;
}

/* Termly blok componenten opschonen */
[data-custom-class='body'] {
    background: transparent !important;
}

.subtitle, [data-custom-class='subtitle'] {
    color: #666 !important;
    font-style: italic;
    text-transform: none !important;
}

/* Lijsten netjes maken */
ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.8rem;
    position: relative;
}

/* Custom bullet points (Groene blokjes) */
ul li::marker {
    color: #00ff00;
}

/* Responsive aanpassingen */
@media screen and (max-width: 768px) {
    .legal-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    h1, [data-custom-class='title'] {
        font-size: 1.8rem !important;
    }
}

/* Logo bovenaan de juridische pagina's */
.legal-logo {
    display: block;
    width: 60px;
    height: auto;
    margin: 1.4rem 0 0.6rem;
}

/* =========================================
Opt-out voor de statistieken (punt 4 van het privacybeleid)
De cookiebanner is verdwenen: er worden geen cookies meer geplaatst.
Zie de git-historie als hij ooit terug moet.
========================================= */
/* Opt-out voor de statistieken: gewone tekst in de uitleg, geen kader (14/09).
   Het blijft een <button> met dezelfde id, zodat analytics.js hem vindt en hij
   met toetsenbord en schermlezer werkt, maar hij ziet eruit als een tekstlink
   in dezelfde stijl als de andere links op de pagina. */
.optout-blok { margin: 1.6rem 0; }

.optout-knop {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: #00ff00;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}
.optout-knop:hover { color: #fff; text-decoration: underline; }
.optout-knop:focus-visible { outline: 2px solid #00ff00; outline-offset: 2px; }

.optout-status {
    display: inline-block;
    margin-left: 0.6rem;
    font-size: 0.9rem;
    color: #cfcfcf;
}

@media screen and (max-width: 768px) {
    .optout-status { display: block; margin: 0.4rem 0 0; }
}
/* =========================================
   PRINT / PDF - juridische documenten
   Zwarte tekst op wit, geen banner, geen knoppen, geen navigatie.
   ========================================= */
@media print {
    :root { color-scheme: light; }

    html, body {
        background: #fff !important;
        color: #000 !important;
        font-size: 10.5pt;
        line-height: 1.5;
    }

    /* Interactieve elementen horen niet in een PDF. Let op: enkel de KNOP van het
       opt-outblok verbergen, niet het blok zelf. De tekst erin legt het recht van
       bezwaar uit en hoort dus wel in de afgedrukte versie te staan. */
    .cookie-banner,
    .cookie-settings-open,
    .optout-knop,
    .optout-status,
    .back-link,
    header, nav, footer { display: none !important; }

    .legal-container {
        max-width: none;
        margin: 0;
        padding: 0;
        background: transparent !important;
        box-shadow: none !important;
    }

    h1, h2, h3, strong, em, p, li, td, th {
        color: #000 !important;
        text-shadow: none !important;
    }

    h1 { font-size: 20pt; margin-bottom: .2em; }
    h2 { font-size: 13pt; margin-top: 1.4em; border-bottom: 1px solid #999; padding-bottom: .15em; }
    h3 { font-size: 11.5pt; margin-top: 1em; }

    /* Kopjes niet alleen onderaan een pagina laten staan */
    h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
    p, li      { orphans: 3; widows: 3; }
    ul, ol     { break-inside: avoid-page; }

    a { color: #000 !important; text-decoration: underline; }
    /* Toon de bestemming van externe links; interne ankers laten we rustig */
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #444; }
    a[href^="mailto"]::after,
    a[href$=".html"]::after { content: ""; }

    code { font-family: monospace; background: #f0f0f0 !important; color: #000 !important; padding: 0 2px; }

    @page { margin: 18mm 16mm; }
}

/* =========================================
Cookiebanner
========================================= */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: #1e1e1e;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show { bottom: 0; }

.cookie-banner p {
    margin: 0;
    color: #cfcfcf;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner a {
    color: #00ff00;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Beide knoppen even prominent (gelijke grootte/positie) - GDPR/GBA-conform.
   2px-rand op beide zodat de box-afmetingen exact gelijk zijn. */
.cookie-button {
    padding: 0.7rem 1.5rem;
    border: 2px solid #00ff00;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    transition: background-color 0.3s ease, filter 0.3s ease;
}
.cookie-button.primary { background-color: #00ff00; color: #050505; }
.cookie-button.primary:hover { filter: brightness(1.12); }
.cookie-button.secondary { background-color: transparent; color: #f0f0f0; }
.cookie-button.secondary:hover { background-color: rgba(0, 255, 0, 0.12); }

.cookie-settings-open {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: #00ff00;
    text-decoration: underline;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .cookie-banner { flex-direction: column; text-align: center; padding: 1.5rem 1rem; }
    .cookie-buttons { margin-top: 1rem; }
}

/* --- Footer op de juridische pagina's ---
   Deze pagina's hadden enkel een terug-link bovenaan, waardoor een bezoeker
   die onderaan uitkomt geen weg meer had naar de diensten. Meteen ook goed
   voor de interne linkstructuur: websites.html en apps.html werden nergens
   vanaf hier aangelinkt. */
.legal-footer {
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.legal-footer a {
    color: #c0c9c0; /* 12.0:1, was #a5aba5 (8.7:1) */
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
    color: #00ff00;
}

/* De huidige pagina niet naar zichzelf laten linken */
.legal-footer span[aria-current] {
    color: #f0f0f0;
}

@media (max-width: 600px) {
    .legal-footer { gap: 0.6rem 1.25rem; }
}

/* ==========================================================================
   PAGINAOVERGANG (js/overgang.js)
   Zelfde regels als in index.css: deze pagina's laden die niet.
   ========================================================================== */
html.wipe-bezig { background: #000; }
html.wipe-bezig body { visibility: hidden; }

.ara-wipe {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
    display: block;
}
.ara-wipe--blokkeer { pointer-events: auto; }   /* tijdens het toeschuiven */
