/* © 2024-2026 Mehdi TMIMI — Vivace Music (vivace-music.org) */
/* ═══════════════════════════════════════════════════════════════════════
   LEGAL & CONTACT — /privacy/, /terms/, /copyright/, /contact/
   Editorial pages on the site kit (css/v-kit.css): a hero with the date
   of the last revision, a reading column with a sticky "on this page"
   index, and the other policies at the foot. Linked after vc:head.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.lg-hero { padding-bottom: clamp(64px, 9vw, 120px); }
.lg-hero .v-h1 { max-width: 15ch; }
.lg-hero .v-lede { max-width: 60ch; }
.lg-hero .v-lede a { color: var(--v-accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lg-hero .v-lede a:hover { text-decoration-thickness: 2px; }
.lg-updated {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  margin-top: -6px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  border: 1px solid var(--v-line);
  background: var(--v-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--v-shadow-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--v-ink-2);
}
.lg-updated .v-ico { width: 18px; height: 18px; color: var(--v-accent); }
.lg-updated time { color: var(--v-ink); }

/* ── Reading column + sticky index ────────────────────────────────────── */
.lg-body {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 720px);
  justify-content: center;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 104px);
}
.lg-toc { position: sticky; top: calc(var(--vc-h) + 28px); padding-top: 6px; }
.lg-toc__h { margin-bottom: 14px; font: 700 0.78rem/1.2 var(--v-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--v-muted); }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; border-inline-start: 1px solid var(--v-line-2); }
.lg-toc li { list-style: none; }
.lg-toc a {
  display: block;
  margin-inline-start: -1px;
  padding: 8px 0 8px 16px;
  padding-inline: 16px 0;
  border-inline-start: 2px solid transparent;
  color: var(--v-muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lg-toc a:hover { color: var(--v-ink); }
.lg-toc a.is-active { color: var(--v-ink); border-image: var(--v-grad) 1; }

.lg-prose { min-width: 0; }
.lg-prose > h2:first-child { margin-top: 0; }
.lg-prose > h2 { margin-top: 1.7em; }
.lg-prose h2 { scroll-margin-top: calc(var(--vc-h) + 24px); }
.lg-n { font-style: italic; color: var(--v-accent); padding-inline-end: 0.08em; }
.lg-callout {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--v-r);
  background: var(--v-surface-2);
  color: var(--v-ink-2);
}
.lg-callout > .v-ico { width: 22px; height: 22px; margin-top: 4px; color: var(--v-accent); }
.lg-callout p { margin: 0; }

/* ── The other policies ───────────────────────────────────────────────── */
.lg-more { padding-top: 0; }
.lg-more .v-head { margin-bottom: clamp(22px, 3vw, 36px); }
.lg-more .v-h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.lg-link .v-card__title { margin-top: 6px; }
.lg-link .v-card__more { padding-top: 10px; }

/* ── Contact ──────────────────────────────────────────────────────────── */
.ct-hero { padding-bottom: clamp(40px, 6vw, 80px); }
.ct-main { padding-bottom: clamp(56px, 8vw, 104px); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(14px, 2vw, 24px); margin-bottom: clamp(14px, 2vw, 24px); }
.ct-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--v-r-xl);
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  box-shadow: var(--v-shadow);
}
.ct-card__h { margin: 0 0 10px; font: 700 0.78rem/1.2 var(--v-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--v-accent); }

/* the email card: a stage band with the address set large */
.ct-card--mail {
  color: rgba(244, 242, 248, 0.78);
  border-color: transparent;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(193, 60, 255, 0.4), transparent 62%),
    radial-gradient(60% 80% at 0% 100%, rgba(255, 110, 199, 0.3), transparent 62%),
    var(--v-stage);
  box-shadow: var(--v-shadow-lg);
}
:root[data-theme="dark"] .ct-card--mail { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--v-shadow-lg); }
/* five staff lines behind the address */
.ct-mail { position: relative; }
.ct-mail::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline: -64px;
  top: 50%;
  margin-top: -30px;
  height: 57px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.ct-card--mail .ct-card__h { color: #ffc4e8; }
.ct-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: clamp(28px, 5vw, 64px); }
.ct-reply { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 14px; border-radius: 18px; line-height: 1.35; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.86rem; font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.ct-reply .v-ico { width: 16px; height: 16px; color: #ffc4e8; }
.ct-card--mail { container-type: inline-size; }
.ct-mail { margin: 0 0 clamp(24px, 3vw, 34px); font: 400 clamp(1.35rem, 6.4vw, 3rem)/1.05 var(--v-serif); letter-spacing: -0.015em; overflow-wrap: anywhere; }
/* the address fits its card on one line, whatever the card's width */
@supports (font-size: 1cqi) { .ct-mail { font-size: clamp(1.3rem, 10.8cqi, 3.4rem); } }
.ct-mail a { color: #fff; text-decoration: none; background: linear-gradient(100deg, #ffb347, #ff6ec7 45%, #b794ff 85%) left bottom / 100% 1.5px no-repeat; padding-bottom: 4px; transition: background-size 0.4s var(--v-ease); }
.ct-mail a:hover { background-size: 100% 3px; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.ct-card--mail .v-btn--primary { background: #fff; color: #15131a; }
.ct-card--mail .v-btn--primary:hover { color: #fff; }
.ct-card--mail .v-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.ct-card--mail .v-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }
.ct-copy__ok { display: none; }
.ct-copy.is-done .ct-copy__i { display: none; }
.ct-copy.is-done .ct-copy__ok { display: block; color: #5eead4; }

/* the social list */
.ct-social { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ct-social li { list-style: none; }
.ct-social a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--v-r);
  border: 1px solid var(--v-line);
  background: var(--v-bg);
  color: var(--v-ink);
  text-decoration: none;
  transition: transform 0.35s var(--v-spring), border-color 0.25s ease, box-shadow 0.3s ease;
}
.ct-social a:hover { transform: translateY(-2px); border-color: var(--v-line-2); box-shadow: var(--v-shadow-sm); }
.ct-social__ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: var(--c); box-shadow: 0 10px 20px -12px var(--c); }
.ct-social__t { display: grid; gap: 2px; min-width: 0; }
.ct-social__t strong { font-size: 1rem; }
.ct-social__t span { font-size: 0.86rem; color: var(--v-muted); overflow-wrap: anywhere; }
.ct-social__go { margin-inline-start: auto; width: 20px; height: 20px; color: var(--v-muted); transition: transform 0.3s var(--v-ease), color 0.2s ease; }
.ct-social a:hover .ct-social__go { color: var(--v-accent); transform: translate(2px, -2px); }

.ct-topic .v-card__title--serif { margin-top: 6px; }
.ct-topic .v-card__text a { color: var(--v-accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ct-topic .v-card__text strong { color: var(--v-ink); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .lg-body { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { display: none; }
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .ct-actions .v-btn { flex: 1 1 100%; }
  .ct-social a { gap: 12px; padding-inline-end: 12px; }
  .ct-social__go { display: none; }
  .lg-updated { font-size: 0.84rem; }
}
