/* ==========================================================================
   mosh Mallorca — shared styles for legal/document pages
   (Aviso Legal, Política de Privacidad). Same header/footer as the main site.
   ========================================================================== */
:root {
  --paper: #f3ece1;
  --paper-soft: #ebe2d2;
  --ink: #1a1817;
  --ink-soft: #3a3631;
  --muted: #b3a994;
  --muted-strong: #8b8377;
  --rule: #d4c9b6;
  --terracotta: #ce8651;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--serif); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

/* HEADER — identical to the main site nav (brand left, centered links, Enquire right) */
header.top { position: sticky; top: 0; left: 0; right: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; padding: 20px 36px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.brand img { height: 42px; width: auto; display: block; }
.top-nav { display: flex; align-items: center; gap: 36px; justify-content: center; font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.top-nav a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.top-nav a:hover { color: var(--terracotta); }
.top-cta { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--ink); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--ink); transition: color 0.2s, border-color 0.2s; }
.top-cta:hover { color: var(--terracotta); border-color: var(--terracotta); }
.top-right { display: inline-flex; align-items: center; gap: 22px; }
.lang { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; font-weight: 500; }
.lang-btn { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; font-weight: inherit; text-transform: uppercase; color: var(--muted-strong); transition: color 0.2s; }
.lang-btn:hover, .lang-btn.active { color: var(--ink); }
.lang-sep { color: var(--muted); }

/* Mobile hamburger + full-page menu */
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px; width: 30px; height: 30px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; z-index: 60; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease; }
.nav-toggle span:nth-child(2) { width: 18px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 26px; }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 26px; }
.mobile-nav { position: fixed; inset: 0; z-index: 45; background: var(--paper); display: flex; flex-direction: column; padding: 100px 28px 44px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1), visibility 0.4s; overflow-y: auto; }
body.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav-links { display: flex; flex-direction: column; margin-top: 24px; }
.mobile-nav-links a { font-family: var(--serif); font-size: clamp(38px, 11vw, 58px); line-height: 1.16; letter-spacing: -0.02em; font-weight: 400; color: var(--ink); text-decoration: none; padding: 7px 0; transition: color 0.2s; }
.mobile-nav-links a:active { color: var(--terracotta); }
.mobile-nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 24px; padding-top: 44px; }
.mobile-nav-foot .lang { font-size: 13px; gap: 12px; letter-spacing: 0.14em; }
.mobile-nav-cta { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--ink); text-decoration: none; align-self: flex-start; border-bottom: 1px solid var(--ink); padding-bottom: 5px; transition: color 0.2s, border-color 0.2s; }
.mobile-nav-contact { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted-strong); text-decoration: none; }
body.nav-open { overflow: hidden; }

/* DOCUMENT BODY */
main { max-width: 860px; margin: 0 auto; padding: 56px 28px 96px; }
.doc-back { display: inline-block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--muted-strong); text-decoration: none; margin-bottom: 24px; transition: color 0.2s; }
.doc-back:hover { color: var(--terracotta); }
h1 { font-family: var(--serif); font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 400; margin-bottom: 14px; }
h1 i { font-style: italic; color: var(--terracotta); }
.doc-updated { font-family: var(--sans); font-size: 11px; letter-spacing: 0.04em; color: var(--muted-strong); margin-bottom: 8px; }
h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; margin: 44px 0 12px; }
p, li { font-size: 17px; color: var(--ink-soft); margin-bottom: 14px; }
strong { color: var(--ink); font-weight: 500; }
ul { padding-left: 22px; margin-bottom: 14px; }
a.inline { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
a.inline:hover { color: var(--terracotta); }
.lead { font-size: 19px; color: var(--ink); margin: 0 0 8px; }
.ph { background: rgba(206,134,81,0.16); border-bottom: 1px dashed var(--terracotta); padding: 0 4px; font-style: italic; color: var(--ink); }
.review-note { margin-top: 56px; padding: 18px 20px; border: 1px dashed var(--rule); background: var(--paper-soft); font-family: var(--sans); font-size: 12px; line-height: 1.6; letter-spacing: 0.02em; color: var(--muted-strong); }

/* FOOTER */
footer { border-top: 1px solid var(--rule); }
.foot-inner { max-width: 860px; margin: 0 auto; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; font-family: var(--sans); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-strong); }
.foot-inner nav { display: inline-flex; gap: 22px; flex-wrap: wrap; }
.foot-inner a { color: var(--muted-strong); text-decoration: none; transition: color 0.2s; }
.foot-inner a:hover { color: var(--ink); }

[data-lang-block][hidden] { display: none; }

@media (max-width: 900px) {
  .top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
  .top-nav { display: none; }
  .top-right { display: none; }
  .nav-toggle { display: flex; }
  .brand img { height: 34px; }
  main { padding: 44px 22px 72px; }
  .foot-inner { padding: 24px 22px; }
}
