/* ============================================
   VAF LEGAL & SECURITY — V22
   Consent UI, legal documents, cookie notice
   ============================================ */

/* --------------------------------------------
   CONSENT CHECKBOX
   Matches the contact form: white on dark,
   Roboto Condensed labels, uppercase tracking.
   -------------------------------------------- */

.vaf-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 1.5rem;
    padding: 1.15rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.vaf-consent-row:focus-within {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.vaf-consent-row.vaf-consent-error {
    border-color: rgba(231, 76, 60, 0.6);
    background: rgba(231, 76, 60, 0.06);
}

.vaf-consent-box {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    cursor: pointer;
    position: relative;

    /* The contact form sits inside a backdrop-filter context, where a
       ::after tick often fails to repaint until some other event forces a
       redraw. A background-image swap repaints reliably, and translateZ
       promotes the box to its own compositing layer. */
    transform: translateZ(0);
    will-change: background-color;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Invisible tap target extending up, down and left only.
   Extending it to the right would overlap the label and steal its clicks,
   which is what made the box feel unresponsive. */
.vaf-consent-box::before {
    content: '';
    position: absolute;
    top: -11px;
    bottom: -11px;
    left: -11px;
    right: 0;
}

.vaf-consent-box:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.vaf-consent-box:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.vaf-consent-box:checked,
.vaf-consent-row.is-checked .vaf-consent-box {
    background-color: #fff;
    border-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8.4l3.6 3.6L13 5'/%3E%3C/svg%3E");
}

.vaf-consent-label {
    flex: 1;
    padding: 4px 0;
    margin: -4px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.55;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.vaf-consent-label a {
    position: relative;
    z-index: 2;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vaf-consent-label a:hover {
    opacity: 0.75;
}

.vaf-consent-message {
    width: 100%;
    margin: 0.75rem 0 0;
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Turnstile sits above the consent row */
.vaf-turnstile {
    margin: 0 0 1.5rem;
}

/* --------------------------------------------
   LEGAL DOCUMENTS
   -------------------------------------------- */

.vaf-legal-doc {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 5% 6rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.75;
}

.vaf-legal-updated {
    display: inline-block;
    margin: 0 0 3rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.vaf-legal-lead {
    margin: 0 0 3rem;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.vaf-legal-doc h2 {
    margin: 3.5rem 0 1.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.vaf-legal-doc h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.vaf-legal-doc h3 {
    margin: 2.25rem 0 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vaf-legal-doc p {
    margin: 0 0 1.25rem;
}

.vaf-legal-doc a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vaf-legal-doc a:hover {
    opacity: 0.75;
}

.vaf-legal-doc strong {
    color: #fff;
    font-weight: 700;
}

.vaf-legal-doc em {
    display: inline-block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-style: normal;
    letter-spacing: 0.5px;
}

.vaf-legal-doc ul {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.vaf-legal-doc ul li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.vaf-legal-doc ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

/* Tables */
.vaf-legal-table {
    width: 100%;
    margin: 0 0 2rem;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.vaf-legal-table th {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: left;
    text-transform: uppercase;
}

.vaf-legal-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.vaf-legal-table tr:last-child td {
    border-bottom: none;
}

.vaf-legal-table code {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85em;
}

/* --------------------------------------------
   FOOTER LEGAL LINKS
   -------------------------------------------- */

.vaf-legal-links {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.vaf-legal-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s ease;
}

.vaf-legal-links a:hover {
    color: #fff;
}

.vaf-legal-sep {
    margin: 0 0.6rem;
    color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------
   COOKIE NOTICE (inactive by default)
   -------------------------------------------- */

.vaf-cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    padding: 1.25rem 5%;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.vaf-cookie-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.vaf-cookie-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.5;
}

.vaf-cookie-inner a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vaf-cookie-accept {
    flex: 0 0 auto;
    padding: 12px 28px;
    background: #fff;
    border: none;
    border-radius: 5px;
    color: #000;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.vaf-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------
   RESPONSIVE
   -------------------------------------------- */

@media (max-width: 768px) {
    .vaf-legal-doc {
        padding: 3rem 6% 4rem;
        font-size: 0.95rem;
    }

    .vaf-legal-doc h2 {
        font-size: 1.4rem;
    }

    .vaf-legal-table {
        display: block;
        overflow-x: auto;
    }

    .vaf-cookie-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .vaf-cookie-accept {
        width: 100%;
    }
}
