/*
Theme Name: Vecta Fab
Theme URI: https://vectadesign.com
Author: Vectadesign
Author URI: https://vectadesign.com
Description: Bespoke one-page site for Vecta Fab (metal powder coating, Parnu, Estonia). Bilingual EN/ET via client-side language switch, quote-request popup form posting to Formspree, back-to-top control. Built from a single-file design draft; not a page-builder theme.
Version: 1.2.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vecta-fab
*/

  /* ===== Tokens =====
     Vecta Fab commits to one world: bright workshop white, with a single
     signal-red accent lifted from the Vecta mark, deliberately, regardless
     of the viewer's system theme. */
  :root {
    --bg: #ffffff;
    --bg-raised: #f6f5f1;
    --bg-sunken: #f1f0ea;
    --ink: #15171b;
    --ink-dim: #55595f;
    --ink-faint: #868a91;
    --line: rgba(21,23,27,0.12);
    --line-strong: rgba(21,23,27,0.26);
    --accent: #e2041a;
    --accent-ink: #ffffff;
    --accent-deep: #8c0a0a;
    --accent-dim: rgba(226,4,26,0.08);
    --shadow: rgba(21,23,27,0.12);

    --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
    --font-label: "Big Shoulders Text", "Arial Narrow", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  h1, h2, h3 { text-wrap: balance; margin: 0; font-family: var(--font-display); font-weight: 700; }
  .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: 24px;
  }
  section { padding-block: clamp(56px, 9vw, 128px); border-top: 1px solid var(--line); }
  .eyebrow {
    font-family: var(--font-label);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--ink-dim);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  /* The contact label sits outside .section-head, so it misses the 1rem size
     the other section labels inherit from the .section-head p rule below.
     Match them explicitly. */
  .contact-grid > div:first-child > .eyebrow { font-size: 1rem; }
  .eyebrow::before {
    content: "";
    width: 7px; height: 7px;
    background: var(--accent);
    display: inline-block;
  }
  .accent-word { color: var(--accent); font-style: italic; font-family: "IBM Plex Sans", serif; }
  ::selection { background: var(--accent); color: var(--accent-ink); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  /* ===== Nav ===== */
  header.site-nav {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 16px;
    gap: 20px;
  }
  .brand-mark { height: 30px; width: auto; display: block; }
  .brand-mark--lg { height: 34px; }
  /* The logo links home. Flex keeps the anchor from adding inline descender
     space around the image, so the nav/footer alignment is unchanged. */
  .brand-link { display: flex; align-items: center; text-decoration: none; transition: opacity 0.15s ease; }
  .brand-link:hover { opacity: 0.85; }
  nav.links {
    display: flex;
    gap: 28px;
    font-size: 0.92rem;
    color: var(--ink-dim);
  }
  nav.links a { text-decoration: none; transition: color 0.15s ease; }
  nav.links a:hover { color: var(--ink); }
  .nav-cta {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    border: 1px solid var(--line-strong);
    padding: 8px 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  .nav-cta:hover { border-color: var(--accent); background: var(--accent-dim); }
  .lang-switch { display: flex; gap: 4px; }
  .lang-switch button {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--ink-dim);
    padding: 8px 10px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  }
  .lang-switch button.active { color: var(--ink); border-color: var(--ink); background: var(--bg-sunken); }
  .lang-switch button:not(.active):hover { color: var(--ink); border-color: var(--line-strong); background: var(--accent-dim); }

  /* ===== Hero ===== */
  .hero {
    position: relative;
    border-top: none;
    min-height: 640px;
    display: flex;
    align-items: flex-end;
    background: #050608;
    padding-block: 0 !important;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(100deg, rgba(6,8,11,0.94) 0%, rgba(6,8,11,0.72) 32%, rgba(6,8,11,0.28) 62%, rgba(6,8,11,0.55) 100%),
      linear-gradient(0deg, rgba(6,8,11,0.85) 0%, rgba(6,8,11,0.1) 40%, rgba(6,8,11,0.05) 60%, rgba(6,8,11,0.6) 100%),
      url("assets/img/hero-bg.jpg");
    background-size: cover;
    background-position: center 40%;
  }
  .hero-content {
    position: relative;
    width: 100%;
    padding-block: 64px 56px;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.01em;
    max-width: 16ch;
  }
  .hero-sub {
    margin-top: 22px;
    max-width: 46ch;
    font-size: 1.05rem;
    color: #d7d9dc;
  }
  .hero-sub b { color: #fff; font-weight: 600; }
  .hero-ctas {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
  }
  .btn-solid {
    background: var(--ink);
    color: var(--bg);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 24px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.15s ease, background 0.15s ease;
  }
  .btn-solid:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
  .btn-text {
    color: #eceef0;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 3px;
    transition: border-color 0.15s ease, color 0.15s ease;
  }
  .btn-text:hover { border-color: #fff; color: #fff; }
  /* ===== Facts strip ===== */
  .facts {
    border-top: 1px solid var(--line);
    background: var(--bg-sunken);
  }
  .facts .wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .fact {
    padding-block: 26px;
    padding-inline: 20px 0;
    border-left: 1px solid var(--line);
  }
  .fact:first-child { border-left: none; padding-inline-start: 0; }
  .fact .num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
  }
  .fact .label {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  /* ===== Section heads ===== */
  .section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
  .section-head h2, .contact-grid h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1; }
  .section-head p { max-width: 60ch; color: var(--ink-dim); font-size: 1rem; margin-top: 0; }
  .section-head p + p { margin-top: 8px; }

  /* ===== Process ===== */
  .process-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
  }
  .process-list { display: flex; flex-direction: column; }
  .process-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
  }
  .process-item:last-child { border-bottom: 1px solid var(--line); }
  .process-item .idx {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    padding-top: 3px;
  }
  .process-item h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; margin-bottom: 6px; }
  .process-item p { margin: 0; color: var(--ink-dim); font-size: 0.94rem; max-width: 46ch; }
  .process-item p + p { margin-top: 6px; }
  .process-media {
    position: sticky;
    top: calc(72px + env(safe-area-inset-top, 0px));
    aspect-ratio: 4 / 5;
    background-image: linear-gradient(180deg, rgba(6,8,11,0) 40%, rgba(6,8,11,0.85) 100%), url("assets/img/process-media.jpg");
    background-size: cover;
    background-position: center;
  }
  .process-media .cap {
    position: absolute;
    left: 20px; bottom: 18px; right: 20px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #c7cad0;
  }
  .process-media-wrap { position: relative; }

  /* ===== Capabilities / spec sheet ===== */
  .specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .spec-block h3 {
    font-family: var(--font-label);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-dim);
    margin-bottom: 18px;
  }
  .spec-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
    padding-block: 16px;
    border-top: 1px solid var(--line);
    align-items: baseline;
  }
  .spec-row:last-child { border-bottom: 1px solid var(--line); }
  .spec-row .k { font-size: 0.98rem; }
  .spec-row .k span { display: block; color: var(--ink-faint); font-size: 0.8rem; margin-top: 2px; }
  .spec-row .v {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
  .mini-label {
    font-family: var(--font-label);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-dim);
    margin: 22px 0 10px;
  }
  .spec-block .subhead {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    line-height: 1.05;
    margin-bottom: 12px;
  }
  .finish-pills { display: flex; gap: 10px; margin: 22px 0 28px; flex-wrap: wrap; }
  .finish-pill {
    border: 1px solid var(--line-strong);
    padding: 8px 16px;
    font-size: 0.86rem;
    font-family: var(--font-mono);
  }
  .swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 6px;
  }
  .swatch { background: var(--bg); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px;}
  .swatch .chip { width: 100%; aspect-ratio: 1.6/1; border: 1px solid rgba(0,0,0,0.15); }
  .swatch .ral { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-dim); }
  .swatch-note { margin-top: 14px; font-size: 0.8rem; color: var(--ink-faint); max-width: 52ch; }
  .swatch-note + .swatch-note { margin-top: 6px; }

  /* ===== Finish banner ===== */
  .finish-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    border-top: 1px solid var(--line);
  }
  .finish-banner .bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(0deg, rgba(6,8,11,0.9) 0%, rgba(6,8,11,0.25) 55%, rgba(6,8,11,0.55) 100%), url("assets/img/finish-banner.jpg");
    background-size: cover;
    background-position: center;
  }
  .finish-banner .wrap { position: relative; padding-block: 48px; }
  .finish-banner h3 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 20ch; }
  .finish-banner p { color: #d4d6da; max-width: 56ch; margin-top: 14px; font-size: 0.98rem; }
  .finish-banner p + p { margin-top: 10px; }

  /* ===== Why ===== */
  .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .why-item { background: var(--bg); padding: 32px 28px; }
  .why-item .n { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; }
  .why-item h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; margin: 14px 0 10px; }
  .why-item p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }

  /* ===== Gallery ===== */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .gallery-tile {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--bg-sunken);
    overflow: hidden;
  }
  .gallery-tile img, .gallery-tile video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  @media (max-width: 780px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid .gallery-tile:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  }
  .why-item p + p { margin-top: 8px; }

  /* ===== Contact ===== */
  .contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; }
  .contact-list li { border-top: 1px solid var(--line); padding-block: 18px; }
  .contact-list li:last-child { border-bottom: 1px solid var(--line); }
  .contact-list .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 6px; }
  .contact-list a { text-decoration: none; font-size: 1.15rem; font-family: var(--font-mono); }
  .contact-list a:hover { color: var(--accent); }
  .contact-note { color: var(--ink-dim); font-size: 0.98rem; max-width: 42ch; margin-top: 20px; }
  .contact-note + .contact-note { margin-top: 8px; }
  .directions {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    font-size: 0.88rem; color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--line-strong);
  }
  .directions:hover { color: var(--accent); border-color: var(--accent); }
  .quote-box {
    border: 1px solid var(--line-strong);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--bg-raised);
  }
  .quote-box p { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }
  .quote-box .quote-lead { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
  .quote-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .quote-list li { position: relative; padding-left: 16px; color: var(--ink-dim); font-size: 0.95rem; }
  .quote-list li::before {
    content: "";
    position: absolute; left: 0; top: 0.6em;
    width: 5px; height: 5px;
    background: var(--accent);
  }
  .quote-box .btn-solid { justify-content: center; background: var(--accent); color: var(--accent-ink); }
  .quote-box .btn-solid:hover { background: var(--ink); color: var(--bg); }

  /* ===== Back to top ===== */
  .to-top-band { border-top: 1px solid var(--line); background: var(--bg); }
  .to-top-band .wrap { display: flex; justify-content: center; padding-block: 30px; }
  .to-top {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-label);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-dim);
    text-decoration: none;
    border: 1px solid var(--line-strong);
    padding: 12px 24px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  }
  .to-top:hover { color: var(--ink); border-color: var(--accent); background: var(--accent-dim); }

  /* ===== Footer ===== */
  footer {
    border-top: 1px solid var(--line);
    padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-sunken);
  }
  .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
  .footer-inner .coords { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-faint); }
  .footer-links { display: flex; gap: 20px; font-size: 0.85rem; color: var(--ink-dim); }
  .footer-links a { text-decoration: none; }
  .footer-links a:hover { color: var(--ink); }

  /* ===== Motion ===== */
  @media (prefers-reduced-motion: no-preference) {
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: none; }
    }
    /* page-load sequence, hero only */
    .hero .eyebrow { animation: fadeUp 0.8s ease both; }
    .hero h1 { animation: fadeUp 0.9s ease both; animation-delay: 0.12s; }
    .hero-sub { animation: fadeUp 0.9s ease both; animation-delay: 0.26s; }
    .hero-ctas { animation: fadeUp 0.9s ease both; animation-delay: 0.4s; }

    /* scroll-triggered reveal, gated by JS adding .in-view */
    .section-head,
    .specs-grid,
    .finish-banner .wrap,
    .contact-grid {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .section-head.in-view,
    .specs-grid.in-view,
    .finish-banner .wrap.in-view,
    .contact-grid.in-view {
      opacity: 1;
      transform: none;
    }
    .process-item, .why-item {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .process-list.in-view .process-item, .why-grid.in-view .why-item {
      opacity: 1;
      transform: none;
    }
    .process-list.in-view .process-item:nth-child(1) { transition-delay: 0s; }
    .process-list.in-view .process-item:nth-child(2) { transition-delay: 0.08s; }
    .process-list.in-view .process-item:nth-child(3) { transition-delay: 0.16s; }
    .process-list.in-view .process-item:nth-child(4) { transition-delay: 0.24s; }
    .process-list.in-view .process-item:nth-child(5) { transition-delay: 0.32s; }
    .why-grid.in-view .why-item:nth-child(1) { transition-delay: 0s; }
    .why-grid.in-view .why-item:nth-child(2) { transition-delay: 0.1s; }
    .why-grid.in-view .why-item:nth-child(3) { transition-delay: 0.2s; }
  }

  /* ===== Responsive ===== */
  @media (max-width: 860px) {
    nav.links { display: none; }
    .process-grid, .specs-grid, .contact-grid { grid-template-columns: 1fr; }
    .process-media { position: relative; top: auto; aspect-ratio: 16/9; }
    .why-grid { grid-template-columns: 1fr; }
    .swatches { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .nav-inner { flex-wrap: wrap; row-gap: 10px; }
    .hero-ctas { flex-direction: column; align-items: flex-start; gap: 16px; }
    .facts .wrap { grid-template-columns: 1fr; }
    .fact { border-left: none !important; border-top: 1px solid var(--line); padding-inline-start: 0; padding-block: 18px; }
    .fact:first-child { border-top: none; }
  }

  /* ===== Quote request modal ===== */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(6,8,11,0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-overlay.is-open { display: flex; }
  body.modal-open { overflow: hidden; }
  .modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    padding: 36px 32px;
    box-shadow: 0 24px 64px rgba(6,8,11,0.35);
  }
  @media (prefers-reduced-motion: no-preference) {
    .modal-overlay {
      opacity: 0;
      transition: opacity 0.2s ease;
    }
    .modal-overlay.is-open { opacity: 1; }
    .modal {
      transform: translateY(12px) scale(0.98);
      transition: transform 0.22s ease;
    }
    .modal-overlay.is-open .modal { transform: none; }
  }
  .modal h3 {
    font-size: clamp(1.3rem, 2.6vw, 1.6rem);
    padding-right: 28px;
    margin-bottom: 22px;
  }
  .modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: none;
    border: 1px solid var(--line-strong);
    color: var(--ink-dim);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  }
  .modal-close:hover { color: var(--ink); border-color: var(--accent); background: var(--accent-dim); }
  .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
  }
  .modal-field span {
    font-family: var(--font-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-dim);
  }
  .modal-field input,
  .modal-field textarea {
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line-strong);
    padding: 11px 12px;
    resize: vertical;
    transition: border-color 0.15s ease;
  }
  .modal-field input:focus,
  .modal-field textarea:focus {
    outline: none;
    border-color: var(--accent);
  }
  #quote-form .btn-solid {
    width: 100%;
    justify-content: center;
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
    margin-top: 6px;
  }
  #quote-form .btn-solid:hover { background: var(--ink); }
  #quote-form .btn-solid:disabled { opacity: 0.6; cursor: default; transform: none; }
  .modal-status {
    margin: 14px 0 0;
    font-size: 0.9rem;
    min-height: 1.3em;
  }
  .modal-status--ok { color: #146c2e; }
  .modal-status--error { color: var(--accent-deep); }
/* Privacy pages and first-visit privacy notice. */
.vecta-legal-page { padding-block: clamp(40px, 6vw, 80px); }
.vecta-legal-page .wrap { max-width: 960px; }
.vecta-legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 28px; }
.vecta-legal-content h3 { font-family: var(--font-body); font-size: 1.15rem; margin: 28px 0 10px; }
.vecta-legal-content p { margin: 12px 0; }
.vecta-legal-content a { text-underline-offset: 3px; }
.vecta-legal-content .contact { padding: 18px; background: var(--bg-raised); border: 1px solid var(--line); }
.vecta-legal-content .table-wrap { overflow-x: auto; }
.vecta-legal-content table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: .94rem; }
.vecta-legal-content th,.vecta-legal-content td { border: 1px solid var(--line-strong); padding: 12px; text-align: left; vertical-align: top; }
.vecta-legal-content th { background: var(--bg-raised); }
.vecta-legal-language[hidden] { display: none !important; }
.vecta-legal-links { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 22px; font-size: .85rem; color: var(--ink-dim); }
.vecta-legal-links a,.vecta-legal-links button { text-underline-offset: 3px; }
.vecta-legal-links button { background: none; border: none; color: inherit; font: inherit; padding: 0; text-decoration: underline; cursor: pointer; }
.vecta-form-notice { color: var(--ink-dim); font-size: .79rem; line-height: 1.55; margin: 18px 0 12px; }
.vecta-form-notice a { text-underline-offset: 3px; }
.vecta-consent { position: fixed; z-index: 80; bottom: 18px; left: 18px; width: min(560px,calc(100vw - 36px)); max-height: calc(100vh - 36px); overflow: auto; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: 0 12px 36px var(--shadow); }
.vecta-consent[hidden],.vecta-consent [hidden] { display: none !important; }
.vecta-consent-inner { padding: 24px; }
.vecta-consent h2 { font-family: var(--font-body); font-size: 1.15rem; line-height: 1.4; }
.vecta-consent p { font-size: .86rem; line-height: 1.55; margin: 12px 0; }
.vecta-consent-details { border-block: 1px solid var(--line); margin: 14px 0; }
.vecta-consent-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 14px; }
.vecta-consent-actions button { font-family: var(--font-body); font-size: .83rem; cursor: pointer; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); padding: 10px 14px; }
.vecta-consent-actions button:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.vecta-consent-actions button:hover { border-color: var(--ink); }
.vecta-consent-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .78rem; }
.vecta-consent-links a { text-underline-offset: 3px; }
.vecta-consent-status:empty { display: none; }
@media (max-width: 560px) { .vecta-consent { bottom: 12px; left: 12px; width: calc(100vw - 24px); max-height: calc(100vh - 24px); }.vecta-consent-inner { padding: 20px; } }
