/*
 * Landing page (Pages/home_ro.php, home_en.php) and the shared public footer.
 * Same rules as the app's ux2.css: readable in sunlight (16-18px text, dark
 * ink, 4.5:1+ contrast), 48px+ targets, one clear main action per section.
 * Loaded by layout/landing.php.
 */
:root {
  --lp-ink: #111a22;
  --lp-hint: #4d5b68;
  --lp-blue: #01579b;      /* 7.4:1 with white */
  --lp-blue-dark: #013f70;
  --lp-orange: #c43e00;    /* 5.2:1 with white */
  --lp-bg: #f3f6f9;
  --lp-line: #d5dde4;
}

.lp2 { color: var(--lp-ink); font-size: 17px; line-height: 1.6; font-weight: 400; }
.lp2 h1, .lp2 h2, .lp2 h3 { font-weight: 700; color: inherit; line-height: 1.2; margin: 0; }
.lp2 p { margin: 0; }
.lp2 section { padding: 56px 0; }
.lp2 .lp2-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.lp2 .lp2-narrow { max-width: 760px; }

/* buttons */
.lp2 .lp2-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 8px; font-size: 18px; font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.lp2 .lp2-btn:hover, .lp2 .lp2-btn:focus { text-decoration: none; filter: brightness(1.08); }
.lp2 .lp2-btn-white { background: #fff; color: var(--lp-blue); }
.lp2 .lp2-btn-blue { background: var(--lp-blue); color: #fff; }
.lp2 .lp2-btn-outline { background: #fff; color: var(--lp-blue); border-color: var(--lp-blue); }
.lp2 .lp2-link-light { color: #fff; font-weight: 700; text-decoration: underline; font-size: 17px; }
.lp2 .lp2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }

/* hero: content-sized, no empty screen of blue above the headline */
.lp2 .lp2-hero { background: var(--lp-blue); color: #fff; padding: 112px 0 56px; }
.lp2 .lp2-hero h1 { font-size: clamp(30px, 5.5vw, 48px); max-width: 18ch; text-wrap: balance; }
.lp2 .lp2-hero .lp2-lead { font-size: clamp(18px, 2.4vw, 21px); margin-top: 16px; max-width: 46ch; color: #fff; }
.lp2 .lp2-hero .lp2-note { margin-top: 16px; font-size: 15px; color: #fff; opacity: .92; }

/* map promo */
.lp2 .lp2-map { background: #fff; }
.lp2 .lp2-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.lp2 .lp2-split h2 { font-size: clamp(26px, 3.6vw, 34px); }
.lp2 .lp2-split p { margin-top: 12px; color: var(--lp-hint); }
.lp2 .lp2-ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.lp2 .lp2-ticks li::before { content: "✓"; color: var(--lp-blue); font-weight: 700; margin-right: 10px; }
.lp2 .lp2-shot { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); border: 1px solid var(--lp-line); }
.lp2 .lp2-shot img { display: block; width: 100%; height: auto; }

/* steps */
.lp2 .lp2-steps { background: var(--lp-bg); }
.lp2 .lp2-steps h2, .lp2 .lp2-features h2, .lp2 .lp2-faq h2 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 24px; }
.lp2 .lp2-step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.lp2 .lp2-step-list li { background: #fff; border-radius: 10px; padding: 20px; border: 1px solid var(--lp-line); counter-increment: step; }
.lp2 .lp2-step-list li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--lp-blue); color: #fff; font-weight: 700; margin-bottom: 10px;
}
.lp2 .lp2-step-list h3 { font-size: 20px; margin-bottom: 6px; }
.lp2 .lp2-step-list p { color: var(--lp-hint); font-size: 16px; }

/* features */
.lp2 .lp2-features { background: #fff; }
.lp2 .lp2-feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.lp2 .lp2-feature-list h3 { font-size: 19px; margin-bottom: 4px; }
.lp2 .lp2-feature-list .icon { color: var(--lp-blue); margin-right: 8px; }
.lp2 .lp2-feature-list p { color: var(--lp-hint); font-size: 16px; }

/* FAQ as tap-to-open questions */
.lp2 .lp2-faq { background: var(--lp-bg); }
.lp2 .lp2-faq details { background: #fff; border: 1px solid var(--lp-line); border-radius: 10px; margin-bottom: 10px; }
.lp2 .lp2-faq summary {
  cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 18px; position: relative; list-style: none; min-height: 56px;
}
.lp2 .lp2-faq summary::-webkit-details-marker { display: none; }
.lp2 .lp2-faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 24px; color: var(--lp-blue); }
.lp2 .lp2-faq details[open] summary::after { content: "−"; }
.lp2 .lp2-faq details p { padding: 0 18px 16px; color: var(--lp-hint); }

/* closing call to action */
.lp2 .lp2-end { background: var(--lp-blue-dark); color: #fff; text-align: center; }
.lp2 .lp2-end h2 { font-size: clamp(24px, 3.4vw, 32px); }
.lp2 .lp2-end .lp2-actions { justify-content: center; }

@media (max-width: 767px) {
  .lp2 section { padding: 40px 0; }
  .lp2 .lp2-hero { padding: 84px 0 40px; }
  .lp2 .lp2-split, .lp2 .lp2-step-list, .lp2 .lp2-feature-list { grid-template-columns: minmax(0, 1fr); }
  .lp2 .lp2-hero .lp2-btn, .lp2 .lp2-end .lp2-btn { width: 100%; }
  .lp2 .lp2-actions { justify-content: center; }
}

/* shared public footer: readable, no empty spacer lines */
.footer { font-size: 15px; }
.footer .footer-links a { display: inline-block; padding: 6px 0; font-size: 15px; }

/* legal pages (Pages/legal.php): long text that has to stay readable */
.lp2.lg section { padding-top: 96px; }
.lp2.lg h1 { font-size: clamp(28px, 4.5vw, 38px); margin-bottom: 8px; }
.lp2.lg h2 { font-size: 24px; margin: 32px 0 10px; }
.lp2.lg h3 { font-size: 19px; margin: 22px 0 8px; }
.lp2.lg .lg-meta { color: var(--lp-hint); font-size: 15px; margin-bottom: 20px; }
.lp2.lg .lg-body p, .lp2.lg .lg-body ul, .lp2.lg .lg-body ol { margin: 0 0 14px; }
.lp2.lg .lg-body li { margin-bottom: 6px; }
.lp2.lg .lg-body a { color: var(--lp-blue); text-decoration: underline; }
.lp2.lg .lg-table { overflow-x: auto; margin: 0 0 16px; }
.lp2.lg table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.lp2.lg th, .lp2.lg td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--lp-line); vertical-align: top; }
.lp2.lg th { font-size: 13px; color: var(--lp-hint); }
.lp2.lg .lg-form { display: grid; gap: 6px; max-width: 520px; }
.lp2.lg .lg-form label { font-weight: 700; margin: 8px 0 0; }
.lp2.lg .lg-form input, .lp2.lg .lg-form select, .lp2.lg .lg-form textarea {
  font-size: 17px; padding: 10px 12px; border: 2px solid #5f6d7a; border-radius: 8px; color: var(--lp-ink); background: #fff; min-height: 48px;
}
.lp2.lg .lg-form button { margin-top: 12px; justify-self: start; }
.lp2.lg .lg-hp { position: absolute; left: -9999px; }
.lp2.lg .message { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 700; }
.lp2.lg .message.success { background: #e3f1e4; color: #1b5e20; }
.lp2.lg .message.error { background: #fbe4e6; color: #8e0016; }
/* phones: the cookie table as one card per cookie, labels from data-label */
@media (max-width: 600px) {
  .lp2.lg table { min-width: 0; }
  .lp2.lg thead { display: none; }
  .lp2.lg table, .lp2.lg tbody, .lp2.lg tr, .lp2.lg td { display: block; width: 100%; }
  .lp2.lg tr { border: 1px solid var(--lp-line); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
  .lp2.lg td { border: 0; padding: 4px 0; }
  .lp2.lg td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--lp-hint); font-weight: 700; }
}
