/* =====================================================================
   GUSOCORP — estilos compartidos para páginas legales
   (Aviso legal, Política de privacidad, Política de cookies)
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

:root {
  --brand: #F39200;
  --brand-dark: #D17B00;
  --brand-soft: #FFF4E2;
  --text: #1F2024;
  --text-soft: #4A4F58;
  --text-muted: #7B8089;
  --bg: #FFFFFF;
  --bg-soft: #FAFAF7;
  --bg-dark: #14161A;
  --border: #ECECEC;
  --border-soft: #F2F2F2;
  --max: 880px;
  --radius: 14px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .nav {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header .brand img { height: 38px; width: auto; }
.site-header .back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-soft);
  text-decoration: none;
}
.site-header .back:hover { color: var(--text); }
.site-header .back svg { transition: transform .2s ease; }
.site-header .back:hover svg { transform: translateX(-3px); }

/* ========== Article ========== */
.legal-hero {
  padding: 70px 0 30px;
  background:
    radial-gradient(700px 280px at 90% -20%, rgba(243,146,0,0.10), transparent 60%),
    var(--bg);
}
.legal-hero .kicker {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.legal-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text);
}
.legal-hero .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

article.legal {
  padding: 30px 0 90px;
  font-size: 16px;
  color: var(--text-soft);
}
article.legal h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}
article.legal h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}
article.legal p { margin: 0 0 14px; }
article.legal ul, article.legal ol { padding-left: 22px; margin: 0 0 14px; }
article.legal ul li, article.legal ol li { margin-bottom: 6px; }
article.legal table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
}
article.legal th, article.legal td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
article.legal th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
article.legal .data-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 18px 0 22px;
}
article.legal .data-block p { margin: 0 0 6px; }
article.legal .data-block strong { color: var(--text); }

article.legal .toc {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 18px;
  margin: 0 0 36px;
}
article.legal .toc h4 {
  margin: 0 0 8px; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
}
article.legal .toc ul { list-style: none; padding: 0; margin: 0; }
article.legal .toc li { margin: 4px 0; }
article.legal .toc a { text-decoration: none; color: var(--text-soft); font-size: 14.5px; }
article.legal .toc a:hover { color: var(--brand); }

/* ========== Footer ========== */
.site-footer {
  padding: 40px 0 36px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
}
.site-footer .container { max-width: 1200px; }
.site-footer .grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-footer img { height: 28px; }
.site-footer .copy { color: var(--text-muted); font-size: 14px; }
.site-footer ul {
  display: flex; flex-wrap: wrap; gap: 22px;
  list-style: none; padding: 0; margin: 0;
}
.site-footer ul a {
  color: var(--text-muted); font-size: 14px; text-decoration: none;
}
.site-footer ul a:hover { color: var(--text); }

/* ========== Cookie banner ========== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20,22,26,0.10), 0 4px 12px rgba(20,22,26,0.06);
  padding: 18px 22px;
  display: none;
  max-width: 720px; margin: 0 auto;
}
.cookie-banner.is-open { display: block; }
.cookie-banner .cb-grid {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner .cb-text {
  flex: 1 1 320px;
  font-size: 14px; color: var(--text-soft); margin: 0;
}
.cookie-banner .cb-text strong { color: var(--text); font-weight: 600; }
.cookie-banner .cb-text a { color: var(--brand-dark); }
.cookie-banner .cb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  font-family: inherit;
}
.cookie-banner button:hover { background: var(--bg-soft); }
.cookie-banner button.cb-primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.cookie-banner button.cb-primary:hover {
  background: var(--brand-dark); border-color: var(--brand-dark);
  transform: translateY(-1px);
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .legal-hero { padding: 50px 0 20px; }
  article.legal { padding: 20px 0 70px; }
  .site-footer .grid { justify-content: flex-start; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px 18px; }
}
