/* =========================================================
   TourVoz SaaS Website — Global UI System
   Internal v04
   ========================================================= */

:root {
  /* Brand */
  --tv-ink: #0c1020;
  --tv-ink-soft: #171b2e;
  --tv-text: #202437;
  --tv-muted: #6f7485;

  --tv-accent: #6956e8;
  --tv-accent-hover: #5846d6;
  --tv-accent-soft: #f0edff;

  --tv-warm: #f4a85a;

  /* Surfaces */
  --tv-bg: #ffffff;
  --tv-bg-soft: #f7f8fb;
  --tv-bg-tint: #faf9ff;

  --tv-border: #e5e7ef;
  --tv-border-strong: #d8dbe6;

  /* Layout */
  --tv-container: 1200px;
  --tv-container-wide: 1320px;

  /* Radius */
  --tv-radius-sm: 10px;
  --tv-radius-md: 16px;
  --tv-radius-lg: 24px;
  --tv-radius-xl: 32px;

  /* Shadows */
  --tv-shadow-sm:
    0 2px 8px rgba(12, 16, 32, 0.05);

  --tv-shadow-md:
    0 12px 35px rgba(12, 16, 32, 0.08);

  --tv-shadow-lg:
    0 24px 70px rgba(12, 16, 32, 0.12);

  /* Motion */
  --tv-transition: 180ms ease;
}

/* =========================================================
   Global
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tv-bg);
  color: var(--tv-text);
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* =========================================================
   Layout
   ========================================================= */

.tv-page {
  width: 100%;
  overflow: hidden;
}

.tv-container {
  width: min(
    calc(100% - 48px),
    var(--tv-container)
  );
  margin-inline: auto;
}

.tv-container-wide {
  width: min(
    calc(100% - 48px),
    var(--tv-container-wide)
  );
  margin-inline: auto;
}

.tv-section {
  padding: 110px 0;
}

.tv-section-soft {
  background: var(--tv-bg-soft);
}

.tv-section-dark {
  background: var(--tv-ink);
  color: #fff;
}

/* =========================================================
   Typography
   ========================================================= */

.tv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 18px;

  color: var(--tv-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tv-display {
  margin: 0;

  color: var(--tv-ink);
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.tv-h1 {
  margin: 0;

  color: var(--tv-ink);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.tv-h2 {
  margin: 0;

  color: var(--tv-ink);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.tv-h3 {
  margin: 0;

  color: var(--tv-ink);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.tv-lead {
  max-width: 720px;
  margin: 24px 0 0;

  color: var(--tv-muted);
  font-size: 18px;
  line-height: 1.8;
}

.tv-copy {
  color: var(--tv-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* =========================================================
   Buttons
   ========================================================= */

.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 52px;
  padding: 0 24px;

  border: 1px solid transparent;
  border-radius: 12px;

  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;

  transition:
    transform var(--tv-transition),
    box-shadow var(--tv-transition),
    background var(--tv-transition),
    border-color var(--tv-transition);
}

.tv-btn:hover {
  transform: translateY(-1px);
}

.tv-btn-primary {
  background: var(--tv-ink);
  color: #fff;
  box-shadow:
    0 8px 22px rgba(12, 16, 32, 0.16);
}

.tv-btn-primary:hover {
  background: #171c32;
  color: #fff;
}

.tv-btn-accent {
  background: var(--tv-accent);
  color: #fff;
  box-shadow:
    0 8px 24px rgba(105, 86, 232, 0.25);
}

.tv-btn-accent:hover {
  background: var(--tv-accent-hover);
  color: #fff;
}

.tv-btn-secondary {
  background: #fff;
  color: var(--tv-ink);

  border-color: var(--tv-border);
  box-shadow: var(--tv-shadow-sm);
}

.tv-btn-secondary:hover {
  border-color: var(--tv-border-strong);
  color: var(--tv-ink);
}

/* =========================================================
   Global Buttons
   ========================================================= */

.tv-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  min-height:50px;
  padding:0 22px;

  border-radius:11px;

  font-size:12px;
  font-weight:700;
  line-height:1;

  text-decoration:none !important;

  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}


/* Purple primary — light backgrounds */

.tv-btn-primary{
  border:1px solid #6956e8;
  background:#6956e8;
  color:#fff !important;
}

.tv-btn-primary:hover{
  border-color:#5846d6;
  background:#5846d6;
  color:#fff !important;
  transform:translateY(-2px);
}


/* White primary — dark backgrounds */

.tv-btn-light{
  border:1px solid #fff;
  background:#fff;
  color:#16182b !important;
}

.tv-btn-light:hover{
  background:#fff;
  color:#6956e8 !important;
  transform:translateY(-2px);
}


/* Secondary */

.tv-btn-secondary{
  border:1px solid #d8dbe6;
  background:transparent;
  color:#202437 !important;
}

.tv-btn-secondary:hover{
  border-color:#6956e8;
  color:#6956e8 !important;
  transform:translateY(-2px);
}


/* Arrow */

.tv-btn > span{
  transition:transform 180ms ease;
}

.tv-btn:hover > span{
  transform:translateX(3px);
}

/* =========================================================
   Global Text Link CTA
   ========================================================= */

.tv-text-link{
  display:inline-flex;
  align-items:center;
  gap:9px;

  color:var(--tv-accent);
  font-size:12px;
  font-weight:700;
  line-height:1.5;
  text-decoration:none !important;
}

.tv-text-link > span{
  display:inline-block;
  transition:transform var(--tv-transition);
}

.tv-text-link:hover{
  color:var(--tv-accent-hover);
}

.tv-text-link:hover > span{
  transform:translateX(4px);
}

/* =========================================================
   Badges
   ========================================================= */

.tv-badge {
  display: inline-flex;
  align-items: center;

  padding: 8px 12px;

  border: 1px solid #ded9ff;
  border-radius: 999px;

  background: var(--tv-accent-soft);
  color: var(--tv-accent);

  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   Cards
   ========================================================= */

.tv-card {
  background: #fff;

  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);

  box-shadow: var(--tv-shadow-sm);

  transition:
    transform var(--tv-transition),
    box-shadow var(--tv-transition),
    border-color var(--tv-transition);
}

.tv-card:hover {
  transform: translateY(-3px);

  border-color: var(--tv-border-strong);

  box-shadow: var(--tv-shadow-md);
}

/* =========================================================
   Gradient / SaaS decorative utilities
   ========================================================= */

.tv-gradient-text {
  color: var(--tv-accent);

  background:
    linear-gradient(
      120deg,
      #6956e8 0%,
      #907cff 50%,
      #f0a85a 115%
    );

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
}

.tv-glow {
  position: relative;
}

.tv-glow::before {
  content: "";

  position: absolute;
  z-index: -1;

  width: 520px;
  height: 520px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(105, 86, 232, 0.14) 0%,
      rgba(105, 86, 232, 0.04) 46%,
      rgba(105, 86, 232, 0) 72%
    );

  filter: blur(10px);
  pointer-events: none;
}

/* =========================================================
   Legal Pages
   Terms / Privacy / Cookie
   ========================================================= */

.tv-legal-page {
  background: var(--tv-bg);
  color: var(--tv-text);
}

.tv-legal-hero {
  position: relative;
  padding: 84px 24px 58px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(105, 86, 232, 0.10),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #fbfaff 0%,
      #ffffff 100%
    );
  border-bottom: 1px solid rgba(229, 231, 239, 0.8);
}

.tv-legal-hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(105, 86, 232, 0.07);
  filter: blur(10px);
  pointer-events: none;
}

.tv-legal-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  margin: 0 auto;
}

.tv-legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--tv-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tv-legal-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--tv-accent);
}

.tv-legal-title {
  margin: 0;
  color: var(--tv-ink);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.tv-legal-subtitle {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--tv-muted);
  font-size: 17px;
  line-height: 1.75;
}

.tv-legal-updated {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: #8a8e9c;
  font-size: 13px;
}

.tv-legal-updated::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--tv-accent);
}

.tv-legal-main {
  padding: 64px 24px 96px;
}

.tv-legal-layout {
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  gap: 54px;
  align-items: start;
}

.tv-legal-toc {
  position: sticky;
  top: 110px;
  padding: 20px;
  border: 1px solid var(--tv-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(25, 29, 50, 0.05);
}

.tv-legal-toc__label {
  margin: 0 0 12px;
  color: var(--tv-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tv-legal-toc a {
  display: block;
  padding: 7px 0;
  color: var(--tv-muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none !important;
  transition: color var(--tv-transition);
}

.tv-legal-toc a:hover {
  color: var(--tv-accent);
}

.tv-legal-content {
  min-width: 0;
}

.tv-legal-intro {
  margin-bottom: 42px;
  padding: 22px 24px;
  border: 1px solid rgba(105, 86, 232, 0.14);
  border-radius: 16px;
  background: var(--tv-bg-tint);
}

.tv-legal-content h2 {
  scroll-margin-top: 120px;
  margin: 48px 0 16px;
  color: var(--tv-ink);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.tv-legal-content h2:first-of-type {
  margin-top: 0;
}

.tv-legal-content h3 {
  margin: 30px 0 12px;
  color: var(--tv-ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.tv-legal-content p {
  margin: 0 0 18px;
  color: var(--tv-text);
  font-size: 15.5px;
  line-height: 1.9;
}

.tv-legal-content ul {
  margin: 10px 0 22px;
  padding-left: 22px;
}

.tv-legal-content li {
  margin: 8px 0;
  color: var(--tv-text);
  font-size: 15.5px;
  line-height: 1.8;
}

.tv-legal-content strong {
  color: var(--tv-ink);
}

.tv-legal-note {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--tv-accent);
  border-radius: 0 12px 12px 0;
  background: #f8f7ff;
}

.tv-legal-contact {
  margin-top: 48px;
  padding: 26px;
  border: 1px solid var(--tv-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(25, 29, 50, 0.05);
}

.tv-legal-contact h2 {
  margin-top: 0;
}

.tv-legal-contact a {
  color: var(--tv-accent);
  text-decoration: none;
}

.tv-legal-contact a:hover {
  text-decoration: underline;
}

/* =========================================================
   Astra content cleanup
   ========================================================= */

.site-content {
  background: #fff;
}

.ast-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.entry-content {
  margin: 0;
}

.entry-content > * {
  max-width: none;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 921px) {
  .tv-section {
    padding: 82px 0;
  }

  .tv-container,
  .tv-container-wide {
    width: min(
      calc(100% - 36px),
      var(--tv-container)
    );
  }

  .tv-display {
    font-size: clamp(42px, 9vw, 64px);
  }

  .tv-lead {
    font-size: 17px;
  }

  .tv-legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tv-legal-toc {
    position: relative;
    top: auto;
  }

  .tv-legal-toc nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
  }
}

@media (max-width: 544px) {
  .tv-section {
    padding: 68px 0;
  }

  .tv-container,
  .tv-container-wide {
    width: calc(100% - 32px);
  }

  .tv-display,
  .tv-h1 {
    font-size: 40px;
    line-height: 1.08;
  }

  .tv-h2 {
    font-size: 32px;
  }

  .tv-lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .tv-btn {
    min-height: 50px;
  }

  .tv-legal-hero {
    padding: 58px 20px 38px;
  }

  .tv-legal-main {
    padding: 42px 20px 68px;
  }

  .tv-legal-title {
    font-size: 38px;
  }

  .tv-legal-subtitle {
    font-size: 15px;
  }

  .tv-legal-layout {
    gap: 22px;
  }

  .tv-legal-toc {
    padding: 16px 18px;
  }

  .tv-legal-toc nav {
    grid-template-columns: 1fr;
  }

  .tv-legal-content h2 {
    margin-top: 38px;
    font-size: 22px;
  }

  .tv-legal-content p,
  .tv-legal-content li {
    font-size: 15px;
  }
}
