/*
Theme Name: Crafted Visual Brand V8 Legal
Theme URI: https://craftedvisual.com/
Author: Crafted Visual
Author URI: https://craftedvisual.com/
Description: Brand-aligned Crafted Visual theme with local SEO, structured data, social metadata and search-friendly content.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: crafted-visual-innovation
*/

:root {
  --cv-bg: #0f0e0d;
  --cv-bg-soft: #171411;
  --cv-panel: rgba(255,248,239,.055);
  --cv-line: rgba(225,189,131,.16);
  --cv-text: #f8f3ec;
  --cv-muted: #b9ada1;
  --cv-accent: #c99a58;
  --cv-accent-2: #7a4c31;
  --cv-forest: #34423d;
  --cv-gold-light: #e1bd83;
  --cv-white: #ffffff;
  --cv-dark: #15120f;
  --cv-max: 1200px;
  --cv-radius: 24px;
  --cv-shadow: 0 28px 80px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cv-text);
  background: var(--cv-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.cv-container { width: min(calc(100% - 40px), var(--cv-max)); margin-inline: auto; }
.cv-narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.cv-section { padding: 96px 0; position: relative; overflow: hidden; }
.cv-section--soft { background: #12100e; }
.cv-section--light { background: #f3eee7; color: #18130f; }
.cv-section--gradient { background: radial-gradient(circle at 12% 10%, rgba(201,154,88,.22), transparent 36%), radial-gradient(circle at 92% 35%, rgba(52,66,61,.24), transparent 34%), #100e0c; }
.cv-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--cv-gold-light); font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.cv-eyebrow::before { content: ""; width: 30px; height: 2px; background: linear-gradient(90deg,var(--cv-accent),var(--cv-accent-2)); border-radius: 2px; }
.cv-heading { margin: 0 0 18px; max-width: 900px; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.045em; }
.cv-heading--md { font-size: clamp(32px, 4vw, 52px); }
.cv-heading--sm { font-size: clamp(24px, 3vw, 34px); }
.cv-lead { max-width: 760px; margin: 0; color: var(--cv-muted); font-size: clamp(17px, 1.6vw, 21px); }
.cv-section--light .cv-lead { color: #665d55; }
.cv-gradient-text { background: linear-gradient(90deg,#fff8ef 0%,#e1bd83 48%,#9a6842 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.cv-site-header { position: sticky; top: 0; z-index: 999; background: rgba(15,14,13,.88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.08); }
.cv-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cv-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.02em; }
.cv-brand img { max-height: 46px; width: auto; }
.cv-brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg,var(--cv-accent),var(--cv-accent-2)); box-shadow: 0 10px 30px rgba(122,76,49,.35); font-weight: 900; }
.cv-nav { display: flex; align-items: center; gap: 24px; }
.cv-nav ul { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
.cv-nav a { color: #ded2c7; font-size: 14px; font-weight: 700; }
.cv-nav a:hover, .cv-nav .current-menu-item > a { color: #fff; }
.cv-header-cta { padding: 11px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.06); }
.cv-menu-toggle { display: none; appearance: none; border: 0; background: transparent; color: #fff; width: 44px; height: 44px; border-radius: 12px; }
.cv-menu-toggle span, .cv-menu-toggle::before, .cv-menu-toggle::after { content: ""; display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: .25s ease; }

.cv-hero { min-height: 760px; display: grid; align-items: center; padding: 120px 0 90px; position: relative; overflow: hidden; }
.cv-hero::before { content: ""; position: absolute; inset: -20% -10%; background: radial-gradient(circle at 18% 28%, rgba(201,154,88,.28), transparent 28%), radial-gradient(circle at 82% 58%, rgba(52,66,61,.28), transparent 26%); pointer-events: none; }
.cv-grid-lines { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.cv-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.cv-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.cv-btn:hover { transform: translateY(-2px); }
.cv-btn--primary { background: linear-gradient(135deg,var(--cv-gold-light),var(--cv-accent) 52%,var(--cv-accent-2)); color: #17110c; box-shadow: 0 18px 40px rgba(122,76,49,.30); }
.cv-btn--secondary { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
.cv-btn--dark { background: #171411; color: #fff8ef; }
.cv-hero-visual { min-height: 500px; position: relative; }
.cv-orbit { position: absolute; inset: 10% 0; display: grid; place-items: center; }
.cv-orbit-ring { position: absolute; width: 420px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); animation: cv-spin 30s linear infinite; }
.cv-orbit-ring:nth-child(2) { width: 310px; animation-direction: reverse; animation-duration: 24s; }
.cv-orbit-core { position: relative; z-index: 3; width: 180px; aspect-ratio: 1; border-radius: 42px; display: grid; place-items: center; text-align: center; padding: 24px; background: linear-gradient(145deg, #b4864f 0%, #70482f 54%, #34423d 100%); box-shadow: 0 30px 100px rgba(122,76,49,.42); font-weight: 900; font-size: 22px; }
.cv-orbit-node { position: absolute; width: 112px; min-height: 72px; padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(24,20,17,.86); backdrop-filter: blur(15px); box-shadow: 0 16px 50px rgba(0,0,0,.3); font-size: 12px; font-weight: 800; color: #f4eadf; }
.cv-orbit-node:nth-of-type(4) { top: 2%; left: 38%; }
.cv-orbit-node:nth-of-type(5) { top: 25%; right: 0; }
.cv-orbit-node:nth-of-type(6) { bottom: 12%; right: 8%; }
.cv-orbit-node:nth-of-type(7) { bottom: 3%; left: 32%; }
.cv-orbit-node:nth-of-type(8) { bottom: 25%; left: 0; }
.cv-orbit-node:nth-of-type(9) { top: 18%; left: 4%; }
@keyframes cv-spin { to { transform: rotate(360deg); } }

.cv-kicker-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: var(--cv-radius); overflow: hidden; }
.cv-kicker { padding: 28px; background: #12100e; }
.cv-kicker strong { display: block; font-size: 25px; margin-bottom: 4px; }
.cv-kicker span { color: var(--cv-muted); font-size: 14px; }

.cv-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 44px; }
.cv-card-grid--2 { grid-template-columns: repeat(2,1fr); }
.cv-card-grid--4 { grid-template-columns: repeat(4,1fr); }
.cv-card { position: relative; min-height: 240px; padding: 30px; border-radius: var(--cv-radius); border: 1px solid var(--cv-line); background: var(--cv-panel); box-shadow: var(--cv-shadow); overflow: hidden; }
.cv-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; top: -80px; right: -70px; background: radial-gradient(circle, rgba(201,154,88,.25), transparent 68%); }
.cv-card h3 { margin: 18px 0 10px; font-size: 22px; line-height: 1.2; }
.cv-card p { margin: 0; color: var(--cv-muted); }
.cv-section--light .cv-card { background: #fff; border-color: #e2d8cc; box-shadow: 0 18px 60px rgba(25,30,42,.08); }
.cv-section--light .cv-card p { color: #6c6259; }
.cv-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, rgba(201,154,88,.22), rgba(52,66,61,.22)); border: 1px solid rgba(255,255,255,.12); font-size: 25px; }
.cv-section--light .cv-icon { border-color: #e2d8cc; }

.cv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cv-visual-panel { position: relative; min-height: 460px; border-radius: 32px; background: linear-gradient(145deg,#201a15,#0f0e0d); border: 1px solid rgba(255,255,255,.12); overflow: hidden; box-shadow: var(--cv-shadow); }
.cv-visual-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(201,154,88,.34), transparent 36%), radial-gradient(circle at 80% 75%, rgba(52,66,61,.34), transparent 34%); }
.cv-visual-screen { position: absolute; left: 9%; right: 9%; top: 13%; bottom: 13%; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(15,14,13,.80); box-shadow: inset 0 0 0 12px rgba(255,255,255,.025), 0 30px 80px rgba(0,0,0,.4); padding: 28px; }
.cv-mini-bars { display: grid; gap: 13px; margin-top: 28px; }
.cv-mini-bar { height: 12px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.cv-mini-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--cv-accent),var(--cv-accent-2)); }
.cv-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.cv-list li { position: relative; padding-left: 30px; color: var(--cv-muted); }
.cv-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #8ff1e7; font-weight: 900; }
.cv-section--light .cv-list li { color: #565d6a; }

.cv-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 48px; counter-reset: cv-step; }
.cv-step { counter-increment: cv-step; padding: 28px; min-height: 220px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.cv-step::before { content: "0" counter(cv-step); display: block; margin-bottom: 30px; color: #9c88ff; font-weight: 900; font-size: 13px; letter-spacing: .1em; }
.cv-step h3 { margin: 0 0 10px; font-size: 20px; }
.cv-step p { margin: 0; color: var(--cv-muted); font-size: 15px; }

.cv-advisors { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 42px; }
.cv-advisor { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid #e3e6ed; color: #161820; box-shadow: 0 12px 40px rgba(20,24,35,.06); }
.cv-advisor strong { display: block; margin-bottom: 5px; }
.cv-advisor span { color: #6c6259; font-size: 14px; }

.cv-project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 40px; }
.cv-project { min-height: 360px; position: relative; display: flex; align-items: end; padding: 24px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(150deg,#262b37,#10131a); }
.cv-project::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, rgba(201,154,88,.34), transparent 32%), linear-gradient(to top, rgba(15,14,13,.94), transparent 62%); }
.cv-project:nth-child(2)::before { background: radial-gradient(circle at 75% 22%, rgba(52,66,61,.38), transparent 34%), linear-gradient(to top, rgba(15,14,13,.94), transparent 62%); }
.cv-project:nth-child(3)::before { background: radial-gradient(circle at 50% 20%, rgba(255,183,77,.28), transparent 34%), linear-gradient(to top, rgba(5,6,9,.9), transparent 62%); }
.cv-project-content { position: relative; z-index: 2; }
.cv-project small { color: #b9c0cc; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.cv-project h3 { margin: 6px 0 0; font-size: 24px; }

.cv-cta { padding: 52px; border-radius: 34px; background: linear-gradient(135deg, rgba(122,76,49,.98), rgba(180,134,79,.96) 52%, rgba(52,66,61,.94)); box-shadow: 0 30px 90px rgba(90,55,34,.34); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cv-cta h2 { margin: 0 0 10px; font-size: clamp(30px,4vw,50px); letter-spacing: -.035em; }
.cv-cta p { margin: 0; max-width: 700px; color: rgba(255,255,255,.84); }

.cv-form { display: grid; gap: 16px; margin-top: 30px; }
.cv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cv-form label { display: grid; gap: 8px; font-weight: 750; font-size: 14px; }
.cv-form input, .cv-form textarea, .cv-form select { width: 100%; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.07); color: #fff; padding: 14px 15px; outline: none; }
.cv-form textarea { min-height: 150px; resize: vertical; }
.cv-form input:focus, .cv-form textarea:focus, .cv-form select:focus { border-color: var(--cv-accent-2); box-shadow: 0 0 0 3px rgba(201,154,88,.14); }
.cv-notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; background: rgba(201,154,88,.14); border: 1px solid rgba(201,154,88,.32); }
.cv-notice--error { background: rgba(255,82,82,.12); border-color: rgba(255,82,82,.28); }

.cv-page-hero { padding: 120px 0 74px; background: radial-gradient(circle at 15% 20%, rgba(201,154,88,.20), transparent 32%), radial-gradient(circle at 80% 25%, rgba(52,66,61,.22), transparent 28%), #100e0c; border-bottom: 1px solid rgba(255,255,255,.08); }
.cv-page-hero .cv-heading { max-width: 980px; }
.cv-breadcrumb { color: #9fa6b3; font-size: 14px; margin-bottom: 24px; }
.cv-content { padding: 74px 0 100px; }
.cv-content > *:first-child { margin-top: 0; }
.cv-content h2 { margin-top: 54px; font-size: clamp(30px,4vw,48px); letter-spacing: -.03em; }
.cv-content h3 { margin-top: 36px; font-size: 26px; }
.cv-content p, .cv-content li { color: var(--cv-muted); }

.cv-site-footer { border-top: 1px solid rgba(255,255,255,.09); background: #0a0908; padding: 70px 0 28px; }
.cv-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.cv-footer-brand p { max-width: 390px; color: var(--cv-muted); }
.cv-footer-col h4 { margin: 0 0 16px; }
.cv-footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cv-footer-col a, .cv-footer-col li { color: #b9ada1; font-size: 14px; }
.cv-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 34px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.08); color: #82766b; font-size: 13px; }

.cv-reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.cv-reveal.is-visible { opacity: 1; transform: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .cv-nav ul { gap: 14px; }
  .cv-nav a { font-size: 13px; }
  .cv-card-grid--4, .cv-steps { grid-template-columns: repeat(2,1fr); }
  .cv-kicker-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .cv-menu-toggle { display: block; }
  .cv-nav { display: none; position: absolute; top: 76px; left: 20px; right: 20px; padding: 22px; border-radius: 18px; background: rgba(18,16,14,.98); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--cv-shadow); }
  .cv-nav.is-open { display: block; }
  .cv-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .cv-nav a { display: block; padding: 10px 8px; }
  .cv-header-cta { margin-top: 10px; text-align: center; }
  .cv-hero { min-height: auto; padding-top: 92px; }
  .cv-hero-grid, .cv-split { grid-template-columns: 1fr; }
  .cv-hero-visual { min-height: 440px; }
  .cv-card-grid, .cv-card-grid--2, .cv-project-grid, .cv-advisors { grid-template-columns: 1fr 1fr; }
  .cv-footer-grid { grid-template-columns: 1fr 1fr; }
  .cv-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .cv-container, .cv-narrow { width: min(calc(100% - 28px), var(--cv-max)); }
  .cv-section { padding: 72px 0; }
  .cv-heading { font-size: 43px; }
  .cv-card-grid, .cv-card-grid--2, .cv-card-grid--4, .cv-project-grid, .cv-advisors, .cv-steps, .cv-kicker-row, .cv-form-grid, .cv-footer-grid { grid-template-columns: 1fr; }
  .cv-hero-visual { min-height: 390px; transform: scale(.86); margin-inline: -8%; }
  .cv-orbit-ring { width: 360px; }
  .cv-orbit-ring:nth-child(2) { width: 270px; }
  .cv-orbit-node { width: 96px; }
  .cv-cta { padding: 32px 24px; }
  .cv-footer-bottom { flex-direction: column; }
}


/* V3 official brand alignment */
.cv-brand-symbol { width:42px; height:42px; object-fit:contain; filter:drop-shadow(0 8px 18px rgba(122,76,49,.28)); }
.cv-brand-name { color:#fff8ef; letter-spacing:.01em; }
.cv-site-header .cv-brand { min-width:max-content; }
.cv-orbit-core { color:#fff8ef; border:1px solid rgba(225,189,131,.22); }
.cv-orbit-ring { border-color:rgba(225,189,131,.14); }
.cv-orbit-ring:nth-child(2) { border-color:rgba(52,66,61,.32); }
.cv-header-cta { border-color:rgba(225,189,131,.24); background:rgba(201,154,88,.07); }
.cv-header-cta:hover { border-color:rgba(225,189,131,.55); background:rgba(201,154,88,.13); }


/* V5: make native select dropdown options readable in Windows/Chrome */
.cv-form select {
  color: #f8f3ec;
}
.cv-form select option,
.cv-form select optgroup {
  background-color: #ffffff;
  color: #17110c;
}
.cv-form select option[value=""] {
  color: #6f675f;
}

/* V6 SEO and accessibility */
.cv-skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: 10px;
  background: #ffffff;
  color: #17110c;
  font-weight: 800;
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
}
.cv-skip-link:focus { top: 16px; }


/* V7: centred Saudi Commercial Registration number in the footer */
.cv-footer-bottom--three {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.cv-footer-bottom--three > :last-child {
  text-align: right;
}
.cv-footer-cr {
  text-align: center;
  color: var(--cv-accent, #c99a58);
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .cv-footer-bottom--three {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cv-footer-bottom--three > :last-child {
    text-align: center;
  }
  .cv-footer-cr {
    white-space: normal;
  }
}


/* V8: Saudi-focused website legal pages and cookie controls */
.cv-legal-updated {
  color: var(--cv-muted, #b9ada1);
  font-size: 14px;
  margin-top: 24px;
}
.cv-legal-content {
  max-width: 900px;
}
.cv-legal-content h2 {
  color: #1b1510;
  font-size: clamp(26px, 3vw, 36px);
  margin: 52px 0 16px;
}
.cv-legal-content h2:first-child { margin-top: 0; }
.cv-legal-content h3 {
  color: #2b2119;
  font-size: 20px;
  margin: 28px 0 10px;
}
.cv-legal-content p,
.cv-legal-content li {
  color: #5f554c;
}
.cv-legal-content a {
  color: #7a4c31;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cv-legal-content code {
  padding: 3px 7px;
  border-radius: 7px;
  background: #ede5dc;
  color: #3b2a1d;
}
.cv-legal-note {
  margin-top: 44px;
  padding: 22px;
  border-left: 4px solid var(--cv-accent, #c99a58);
  border-radius: 0 14px 14px 0;
  background: #efe7dd;
  color: #4f443a;
}
.cv-cookie-table {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}
.cv-cookie-table > div {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(49,37,27,.14);
  border-radius: 14px;
  background: #fff;
}
.cv-cookie-table strong { color: #2c2118; }
.cv-cookie-table span { color: #655a51; }
.cv-inline-cookie-button,
.cv-footer-legal button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cv-consent-check {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 11px !important;
  padding: 14px 0;
  color: var(--cv-muted, #b9ada1);
  font-size: 13px !important;
  font-weight: 500 !important;
}
.cv-consent-check input {
  width: 18px !important;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--cv-accent, #c99a58);
}
.cv-consent-check a {
  color: var(--cv-accent, #c99a58);
  text-decoration: underline;
}
.cv-footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 20px;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #9d9186;
  font-size: 12px;
}
.cv-footer-legal a,
.cv-footer-legal button {
  color: #b7aa9e;
  text-decoration: none;
}
.cv-footer-legal a:hover,
.cv-footer-legal button:hover {
  color: var(--cv-accent, #c99a58);
}

.cv-cookie-banner[hidden],
.cv-cookie-modal[hidden] { display: none !important; }
.cv-cookie-banner {
  position: fixed;
  z-index: 9997;
  left: 22px;
  right: 22px;
  bottom: 22px;
  max-width: 1180px;
  margin: auto;
  padding: 20px;
  border: 1px solid rgba(201,154,88,.38);
  border-radius: 20px;
  background: rgba(17,15,13,.97);
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
  backdrop-filter: blur(18px);
}
.cv-cookie-banner__content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
}
.cv-cookie-banner strong {
  display: block;
  color: #fff8ef;
  font-size: 18px;
  margin-bottom: 3px;
}
.cv-cookie-banner p {
  max-width: 690px;
  margin: 0 0 4px;
  color: #c0b4aa;
  font-size: 14px;
}
.cv-cookie-banner a {
  color: var(--cv-accent, #c99a58);
  font-size: 13px;
  text-decoration: underline;
}
.cv-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}
.cv-cookie-actions .cv-btn {
  min-height: 42px;
  padding: 9px 15px;
  font-size: 12px;
}

.cv-cookie-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}
.cv-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(5px);
}
.cv-cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(88vh, 780px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(201,154,88,.35);
  border-radius: 24px;
  background: #15120f;
  box-shadow: 0 30px 100px rgba(0,0,0,.6);
}
.cv-cookie-modal__panel h2 {
  margin: 12px 0 8px;
  color: #fff7ed;
  font-size: 36px;
}
.cv-cookie-modal__panel > p { color: #bdb0a4; }
.cv-cookie-modal__close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}
.cv-cookie-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.09);
}
.cv-cookie-choice strong { color: #f8efe5; }
.cv-cookie-choice p {
  margin: 4px 0 0;
  color: #a99d92;
  font-size: 13px;
}
.cv-switch {
  display: grid;
  justify-items: end;
  gap: 5px;
}
.cv-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cv-switch span {
  position: relative;
  width: 48px;
  height: 27px;
  border-radius: 999px;
  background: #3a332d;
  cursor: pointer;
  transition: .2s;
}
.cv-switch span::after {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
}
.cv-switch input:checked + span {
  background: var(--cv-accent, #c99a58);
}
.cv-switch input:checked + span::after {
  transform: translateX(21px);
}
.cv-switch input:disabled + span {
  opacity: .65;
  cursor: not-allowed;
}
.cv-switch em {
  color: #93877d;
  font-size: 10px;
  font-style: normal;
}
.cv-cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.09);
}
body.cv-cookie-modal-open { overflow: hidden; }

@media (max-width: 820px) {
  .cv-cookie-banner__content { grid-template-columns: 1fr; }
  .cv-cookie-actions { justify-content: flex-start; }
  .cv-cookie-actions .cv-btn { flex: 1 1 160px; }
}
@media (max-width: 620px) {
  .cv-cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .cv-cookie-actions { display: grid; grid-template-columns: 1fr; }
  .cv-cookie-modal { padding: 10px; }
  .cv-cookie-modal__panel { padding: 28px 20px 22px; }
  .cv-cookie-choice { grid-template-columns: 1fr; }
  .cv-switch { justify-items: start; }
  .cv-cookie-table > div { grid-template-columns: 1fr; gap: 7px; }
}
