/* =====================================================
   WW2 AGENCY — TERMS & CONDITIONS
   terms_styles.css  |  Standalone, mobile-first
   Breakpoints: base → 768px → 1024px
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;900&display=swap');

/* ── Variables ──────────────────────────────────────── */
:root {
  --primary:     #f9d406;
  --bg:          #0a0a0a;
  --surface:     #1e1e1e;
  --text:        #f1f5f9;
  --muted:       #94a3b8;
  --dim:         #64748b;
  --border:      rgba(255,255,255,0.05);
  --font-body:   'Inter', sans-serif;
  --font-bebas:  'Bebas Neue', cursive;
  --max-w:       1280px;
  --radius:      0.5rem;
  --radius-lg:   0.75rem;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { background-color: var(--bg); font-family: var(--font-body); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--primary); color: var(--bg); }
a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.tc-header {
  position: sticky; top: 0; z-index: 50; width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background-color: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tc-header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 1.25rem; height: 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

/* Logo */
.tc-logo { display: flex; align-items: center; gap: 0.5rem; color: var(--primary); flex-shrink: 0; }
.tc-logo-svg  { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.tc-logo-text { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.05em; color: #fff; font-style: italic; }

/* Desktop nav */
.tc-desktop-nav { display: none; align-items: center; gap: 2.5rem; }
.tc-desktop-nav a { font-size: 0.875rem; font-weight: 500; color: #cbd5e1; transition: color 0.2s; }
.tc-desktop-nav a:hover { color: var(--primary); }

/* Header CTA button */
.tc-btn-header {
  display: none;
  background-color: var(--primary); color: var(--bg);
  padding: 0.625rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.875rem; border: none; cursor: pointer;
  flex-shrink: 0; white-space: nowrap; transition: filter 0.2s;
}
.tc-btn-header:hover { filter: brightness(1.08); }

/* Hamburger */
.tc-btn-hamburger { display: flex; align-items: center; background: none; border: none; cursor: pointer; color: var(--primary); padding: 0; }
.tc-btn-hamburger .material-symbols-outlined { font-size: 1.875rem; }

/* Mobile menu */
.tc-mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; border-top: 1px solid rgba(255,255,255,0.08); background-color: rgba(10,10,10,0.98); }
.tc-mobile-menu.open { max-height: 420px; }
.tc-mobile-nav { display: flex; flex-direction: column; padding: 1.5rem; gap: 1.25rem; }
.tc-mobile-nav a { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text); transition: color 0.2s; }
.tc-mobile-nav a:hover { color: var(--primary); }
.tc-btn-mobile-cta { width: 100%; background-color: var(--primary); color: var(--bg); padding: 1rem; border-radius: var(--radius); font-weight: 900; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; border: none; cursor: pointer; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.tc-hero { padding: 3rem 1.25rem 2.5rem; border-bottom: 1px solid var(--border); text-align: center; }
.tc-hero-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }

.tc-badge {
  display: inline-block; background-color: var(--primary); color: var(--bg);
  font-size: 0.625rem; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.25rem 0.875rem; border-radius: var(--radius);
}

.tc-hero-title {
  font-family: var(--font-bebas); font-size: 2.5rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; color: #fff;
}
.tc-hero-meta { font-size: 0.875rem; color: var(--muted); }

/* ══════════════════════════════════════════
   MAIN WRAPPER
══════════════════════════════════════════ */
.tc-main { max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.25rem 3rem; }

/* ── Table of Contents ─────────────────── */
.tc-toc-card {
  background-color: var(--surface); border-radius: var(--radius-lg);
  padding: 1.5rem; margin-bottom: 2rem; border: 1px solid var(--border);
}
.tc-toc-title { font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.25em; color: var(--primary); margin-bottom: 1rem; }

.tc-toc-nav { display: flex; flex-direction: column; }
.tc-toc-nav a {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 700; color: var(--primary); opacity: 0.85;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border); transition: opacity 0.2s;
}
.tc-toc-nav a:last-child { border-bottom: none; }
.tc-toc-nav a:hover { opacity: 1; }
.tc-toc-num { font-weight: 900; flex-shrink: 0; }

/* ── Content + Sidebar ─────────────────── */
.tc-content-wrap { display: flex; flex-direction: column; }

/* ── Sections ──────────────────────────── */
.tc-sections { display: flex; flex-direction: column; gap: 1rem; }

/* MOBILE: card style */
.tc-section {
  background-color: var(--surface); border-radius: var(--radius-lg);
  padding: 1.25rem; border-left: 4px solid var(--primary);
}
.tc-section-num { display: block; font-size: 0.6875rem; font-weight: 900; color: var(--primary); letter-spacing: 0.1em; margin-bottom: 0.375rem; }
.tc-section-title { font-family: var(--font-bebas); font-size: 1.5rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; margin-bottom: 0.875rem; }
.tc-section-body { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.9375rem; color: #f1f5f9; line-height: 1.75; }
.tc-section-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* ── Help card ─────────────────────────── */
.tc-help-card { background-color: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; margin-top: 0.5rem; }
.tc-help-main { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.875rem; }
.tc-help-meta { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
.tc-help-title { font-family: var(--font-bebas); font-size: 1.375rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); }
.tc-help-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.tc-help-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background-color: var(--primary); color: var(--bg);
  padding: 0.875rem 1.5rem; border-radius: var(--radius); font-weight: 700; font-size: 0.875rem;
  border: none; cursor: pointer; width: 100%; transition: filter 0.2s;
}
.tc-help-btn:hover { filter: brightness(1.08); }

/* Shared meta styles */
.tc-meta-label { font-size: 0.5625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary); margin-bottom: 0.125rem; }
.tc-meta-value { font-size: 0.875rem; color: #fff; font-weight: 600; }

/* ── Sidebar (hidden by default) ─────── */
.tc-sidebar { display: none; }
.tc-sidebar-inner { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.5rem; }
.tc-sidebar-card { background-color: var(--surface); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); }
.tc-sidebar-card-title { font-family: var(--font-bebas); font-size: 1.125rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 0.75rem; }
.tc-sidebar-card-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; }
.tc-sidebar-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%;
  padding: 0.875rem 1.25rem; border: 2px solid var(--primary); border-radius: var(--radius);
  background: transparent; color: var(--primary); font-weight: 700; font-size: 0.875rem;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.tc-sidebar-btn:hover { background-color: var(--primary); color: var(--bg); }
.tc-sidebar-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 1.5rem 0; }
.tc-sidebar-meta { display: flex; flex-direction: column; gap: 1.25rem; }
.tc-sidebar-quote { background: rgba(249,212,6,0.05); border: 1px solid rgba(249,212,6,0.2); border-radius: var(--radius-lg); padding: 1.5rem; }
.tc-sidebar-quote p { font-size: 0.875rem; font-style: italic; color: var(--primary); line-height: 1.6; font-weight: 500; }

/* ══════════════════════════════════════════
   CTA
══════════════════════════════════════════ */
.tc-cta { background-color: var(--primary); padding: 4rem 1.25rem; text-align: center; }
.tc-cta-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.tc-cta-title { font-family: var(--font-bebas); font-size: 2.25rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; color: var(--bg); line-height: 1.05; }
.tc-cta-btn {
  width: 100%; background-color: var(--bg); color: #fff;
  padding: 1.125rem 2rem; border-radius: var(--radius-lg); font-weight: 900;
  font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em;
  border: none; cursor: pointer; box-shadow: 0 20px 40px rgba(0,0,0,0.4); transition: transform 0.2s, background 0.2s;
}
.tc-cta-btn:hover { transform: scale(1.03); background: #1a1a1a; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.tc-footer { background-color: var(--bg); border-top: 1px solid var(--border); padding: 4rem 1.25rem 2.5rem; }
.tc-footer-inner { max-width: var(--max-w); margin: 0 auto; }
.tc-footer-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2.5rem; margin-bottom: 3rem; }
.tc-footer-brand { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.tc-footer-tagline { font-size: 0.875rem; color: var(--dim); line-height: 1.6; max-width: 20rem; }

.tc-footer-social { display: flex; gap: 1rem; justify-content: center; }
.tc-footer-social-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--dim); transition: color 0.2s, border-color 0.2s; }
.tc-footer-social-btn:hover { color: var(--primary); border-color: var(--primary); }
.tc-footer-social-btn .material-symbols-outlined { font-size: 1.125rem; }

.tc-footer-mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.tc-footer-mobile-nav a { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text); padding: 0.375rem 0; transition: color 0.2s; }
.tc-footer-mobile-nav a:hover { color: var(--primary); }

.tc-footer-col { display: none; }
.tc-footer-col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: #fff; margin-bottom: 1.25rem; }
.tc-footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; }
.tc-footer-links a { font-size: 0.875rem; color: var(--dim); transition: color 0.2s; }
.tc-footer-links a:hover { color: var(--primary); }
.tc-footer-link-active { color: var(--primary) !important; font-weight: 700; }

.tc-footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; font-size: 0.6875rem; color: #475569; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.tc-footer-bottom-right { display: flex; gap: 1.5rem; color: #475569; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

/* ══════════════════════════════════════════
   TABLET  ≥ 768px
══════════════════════════════════════════ */
@media (min-width: 768px) {

  /* Header */
  .tc-header-inner  { height: 5rem; padding: 0 1.5rem; }
  .tc-desktop-nav   { display: flex; }
  .tc-btn-header    { display: block; }
  .tc-btn-hamburger { display: none; }
  .tc-logo-text     { font-size: 1.5rem; }

  /* Hero */
  .tc-hero       { padding: 4rem 1.5rem 3rem; }
  .tc-hero-title { font-size: 4rem; }

  /* Main */
  .tc-main { padding: 3rem 1.5rem 4rem; }

  /* TOC: 2 columns */
  .tc-toc-card { padding: 2rem; margin-bottom: 2.5rem; }
  .tc-toc-nav  { display: grid; grid-template-columns: 1fr 1fr; }
  .tc-toc-nav a:nth-last-child(-n+2) { border-bottom: none; }
  .tc-toc-nav a:nth-last-child(2):not(:nth-last-child(1)) { border-bottom: none; }

  /* Sections: strip the card, use border-left only */
  .tc-sections { gap: 2.5rem; }
  .tc-section  { background: transparent; border-radius: 0; padding: 0 0 0 2rem; border-left: 2px solid rgba(249,212,6,0.3); }
  .tc-section-title { font-size: 1.75rem; color: var(--primary); margin-bottom: 1rem; }
  .tc-section-body  { color: #f1f5f9; }

  /* Help card: 2-col at tablet */
  .tc-help-card { margin-top: 2rem; }
  .tc-help-main {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0.75rem 2rem;
    padding: 2rem;
  }
  .tc-help-title { grid-column: 1; grid-row: 1; }
  .tc-help-desc  { grid-column: 1; grid-row: 2; }
  .tc-help-btn   { grid-column: 2; grid-row: 1 / 3; width: auto; align-self: center; white-space: nowrap; padding: 0.875rem 2rem; }
  .tc-help-meta  { flex-direction: row; gap: 3rem; padding: 1.25rem 2rem; }

  /* CTA */
  .tc-cta       { padding: 4rem 1.5rem; }
  .tc-cta-title { font-size: 3rem; }
  .tc-cta-btn   { width: auto; padding: 1.125rem 3rem; }

  /* Footer: 2 col */
  .tc-footer { padding: 4rem 1.5rem 2.5rem; }
  .tc-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left; align-items: start; gap: 2rem;
  }
  .tc-footer-brand  { align-items: flex-start; }
  .tc-footer-social { justify-content: flex-start; }
  .tc-footer-mobile-nav { display: none; }

  /* Brand spans both rows, servicios+empresa in col 2 */
  .tc-footer-grid { grid-template-rows: auto auto; }
  .tc-footer-brand          { grid-column: 1; grid-row: 1 / 3; }
  .tc-footer-col--servicios { display: block; grid-column: 2; grid-row: 1; }
  .tc-footer-col--empresa   { display: block; grid-column: 2; grid-row: 2; }

  .tc-footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ══════════════════════════════════════════
   DESKTOP  ≥ 1024px
══════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* Header */
  .tc-header-inner { padding: 0 2.5rem; }

  /* Hero */
  .tc-hero       { padding: 5rem 2.5rem 4rem; }
  .tc-hero-title { font-size: 5rem; }

  /* Main */
  .tc-main { padding: 4rem 2.5rem 5rem; }

  /* TOC: 3 columns */
  .tc-toc-card { margin-bottom: 3.5rem; }
  .tc-toc-nav  { grid-template-columns: repeat(3, 1fr); }
  .tc-toc-nav a:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .tc-toc-nav a:nth-last-child(-n+3) { border-bottom: none; }

  /* Content: 2/3 + 1/3 sidebar */
  .tc-content-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem; align-items: start;
  }
  .tc-sections { gap: 3.5rem; }

  /* Sections: stronger border back on desktop */
  .tc-section { border-left: 4px solid var(--primary); padding: 0 0 0 2rem; }
  .tc-section-title { font-size: 2rem; color: #fff; }

  /* Hide help card, show sidebar */
  .tc-help-card { display: none; }
  .tc-sidebar   { display: block; }

  /* CTA: horizontal */
  .tc-cta       { padding: 5rem 2.5rem; }
  .tc-cta-inner { flex-direction: row; justify-content: space-between; text-align: left; gap: 3rem; }
  .tc-cta-title { font-size: 3.5rem; }
  .tc-cta-btn   { width: auto; flex-shrink: 0; padding: 1.25rem 3rem; font-size: 1rem; }

  /* Footer: 4 col */
  .tc-footer { padding: 5rem 2.5rem 2.5rem; }
  .tc-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 4rem;
  }
  .tc-footer-col--servicios,
  .tc-footer-col--empresa,
  .tc-footer-col--legal { display: block; }
}