/* =============================================
   CM4 Costa Viva — Legal pages shared styles
============================================= */
:root {
  --bg:      #080807;
  --bg2:     #0F0F0D;
  --surface: #141412;
  --border:  rgba(255,255,255,0.07);
  --text:    #EDE9E1;
  --dim:     rgba(237,233,225,0.55);
  --muted:   rgba(237,233,225,0.30);
  --gold:    #C9A96E;
  --gold2:   #B8945A;
  --gold-bg: rgba(201,169,110,0.08);
  --r:       cubic-bezier(0.16,1,0.3,1);
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; }
body {
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
  cursor:none;
  -webkit-font-smoothing:antialiased;
}
a { text-decoration:none; color:var(--gold); transition:color 0.25s; cursor:none; }
a:hover { color:var(--gold2); }
ul { list-style:none; }
img { max-width:100%; display:block; }
button { font-family:inherit; cursor:none; }

/* =============================================
   CUSTOM CURSOR (same as home)
============================================= */
#cur {
  position:fixed; inset:0;
  pointer-events:none;
  z-index:99999;
}
.cur-ring {
  position:absolute;
  width:44px; height:44px;
  border:1px solid rgba(201,169,110,0.7);
  border-radius:50%;
  top:-22px; left:-22px;
  will-change:transform;
}
.cur-dot {
  position:absolute;
  width:6px; height:6px;
  background:var(--gold);
  border-radius:50%;
  top:-3px; left:-3px;
  will-change:transform;
}

/* =============================================
   CUSTOM SCROLLBAR (same as home)
============================================= */
html { scrollbar-width: none; }
body::-webkit-scrollbar { display: none; }
#sb {
  position: fixed;
  right: 0; top: 0;
  width: 5px;
  height: 100vh;
  z-index: 9500;
  pointer-events: none;
}
#sb-track {
  position: absolute;
  inset: 0;
  background: rgba(201,169,110,0.06);
  border-left: 1px solid rgba(201,169,110,0.08);
}
#sb-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  min-height: 40px;
  background: var(--gold);
  border-radius: 0 0 0 3px;
  opacity: 0.75;
  transition: opacity 0.2s;
  will-change: transform;
}
body:hover #sb-thumb { opacity: 1; }

/* Disable custom cursor/scrollbar on touch devices */
@media (hover: none) {
  #cur, #sb { display:none !important; }
  body, a, button { cursor:auto !important; }
}

/* Language system (same as main site) */
.le { display:none !important; }
.le.on { display:block !important; }
span.le.on, a.le.on, button.le.on, li.le.on { display:inline !important; }

/* ---------- HEADER ---------- */
.lg-header {
  position:sticky; top:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  gap:24px;
  padding:18px 48px;
  padding-left:max(48px, env(safe-area-inset-left));
  padding-right:max(48px, env(safe-area-inset-right));
  background:rgba(8,8,7,0.92);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
}
.lg-header .lg-logo img { height:84px; width:auto; display:block; }
.lg-nav { display:flex; align-items:center; gap:24px; }
.lg-back {
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; letter-spacing:0.04em; color:var(--dim);
}
.lg-back:hover { color:var(--text); }
.lg-back i { font-size:11px; }
.lg-lang { display:flex; gap:2px; border:1px solid var(--border); border-radius:999px; padding:3px; }
.lg-lang button {
  background:none; border:none; color:var(--dim);
  font-size:12px; font-weight:600; letter-spacing:0.06em;
  padding:5px 12px; border-radius:999px; transition:all 0.25s;
}
.lg-lang button.on { background:var(--gold-bg); color:var(--gold); }

/* ---------- HERO STRIP ---------- */
.lg-hero {
  padding:88px 48px 44px;
  max-width:880px; margin:0 auto;
  border-bottom:1px solid var(--border);
}
.lg-eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  font-size:11px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase;
  color:var(--gold); margin-bottom:18px;
}
.lg-eyebrow::before { content:''; width:28px; height:1px; background:var(--gold); }
.lg-hero h1 {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(34px,5vw,54px);
  font-weight:400; letter-spacing:-0.02em; line-height:1.08;
}
.lg-updated { margin-top:16px; font-size:13px; color:var(--muted); }

/* ---------- BODY ---------- */
.lg-main {
  max-width:880px; margin:0 auto;
  padding:48px 48px 100px;
}
.lg-main h2 {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(24px,3vw,32px);
  font-weight:500; letter-spacing:-0.01em;
  margin:48px 0 16px;
  color:var(--text);
}
.lg-main h2:first-child { margin-top:0; }
.lg-main h3 {
  font-size:16px; font-weight:600; letter-spacing:0.01em;
  margin:28px 0 10px; color:var(--text);
}
.lg-main p { font-size:15px; color:var(--dim); margin-bottom:16px; }
.lg-main ul { margin:0 0 16px; padding-left:0; }
.lg-main ul li {
  position:relative; padding-left:22px; margin-bottom:10px;
  font-size:15px; color:var(--dim);
}
/* Keep list items stacked even when used as language toggles
   (the global li.le.on rule forces inline display, joining the bullets) */
.lg-main ul li.le.on { display:block !important; }
.lg-main ul li::before {
  content:''; position:absolute; left:0; top:11px;
  width:6px; height:6px; border-radius:50%; background:var(--gold);
}
.lg-main strong { color:var(--text); font-weight:600; }
.lg-main a { word-break:break-word; }

/* Company data card */
.lg-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:28px 30px;
  margin:8px 0 24px;
}
.lg-card dl { display:grid; grid-template-columns:auto 1fr; gap:10px 24px; }
.lg-card dt {
  font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--muted); align-self:start; padding-top:2px; white-space:nowrap;
}
.lg-card dd { font-size:15px; color:var(--text); }

/* ---------- FOOTER ---------- */
.lg-footer {
  border-top:1px solid var(--border);
  padding:40px 48px max(40px, env(safe-area-inset-bottom));
  text-align:center;
}
.lg-footer p { font-size:13px; color:var(--muted); margin-bottom:6px; }
.lg-footer a { font-size:13px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
  #cur, #sb { display:none !important; }
  body, a, button { cursor:auto !important; }
  .lg-header {
    padding:14px 20px; gap:14px;
    padding-left:max(20px, env(safe-area-inset-left));
    padding-right:max(20px, env(safe-area-inset-right));
  }
  .lg-nav { gap:14px; }
  .lg-back span { display:none; }
  .lg-hero { padding:56px 20px 32px; }
  .lg-main { padding:36px 20px 72px; }
  .lg-card { padding:22px 20px; }
  .lg-card dl { grid-template-columns:1fr; gap:4px 0; }
  .lg-card dt { padding-top:14px; }
  .lg-card dt:first-child { padding-top:0; }
  .lg-footer { padding:32px 20px max(32px, env(safe-area-inset-bottom)); }
}

/* Logo del header: mismos tamaños que el sitio principal */
@media (max-width: 900px) { .lg-header .lg-logo img { height:75px; } }
@media (max-width: 640px) { .lg-header .lg-logo img { height:63px; } }
@media (max-width: 400px) { .lg-header .lg-logo img { height:54px; } }

/* Crédito "Diseñado por · Kora" */
.lg-credit {
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:18px;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
  transition:color 0.25s var(--r);
}
.lg-credit:hover { color:var(--dim); }
.lg-credit img {
  height:26px;
  width:auto;
  display:block;
  opacity:0.78;
  transition:opacity 0.25s var(--r), transform 0.25s var(--r);
}
.lg-credit:hover img { opacity:1; transform:translateY(-1px); }
