/* ── PAGE LAYOUT ── */
.page-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 48px 60px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── PAGE HERO ── */
.page-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}

.page-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--text);
}

.page-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 4 kártya: 2x2 */
.cards-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.info-card {
  background: rgba(18,18,18,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s;
}
.info-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(24,24,24,0.85);
}

.info-card.wide {
  grid-column: span 2;
}

.info-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.info-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA BLOCK ── */
.cta-block {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
  background: rgba(18,18,18,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.cta-block p {
  flex: 1;
  font-size: 15px;
  color: var(--text-muted);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ffffff;
  color: #111111;
  border-radius: 50px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.88; }

/* ── LIGHT MODE ── */
body.light .page-tag { color: #888888; }
body.light .page-title { color: #111111; }
body.light .page-sub { color: #555555; }

body.light .info-card {
  background: rgba(255,255,255,0.72);
  border-color: rgba(0,0,0,0.1);
}
body.light .info-card:hover {
  background: rgba(255,255,255,0.88);
  border-color: rgba(0,0,0,0.18);
}
body.light .info-card-icon {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1);
  color: #111111;
}
body.light .info-card h3 { color: #111111; }
body.light .info-card p { color: #555555; }

body.light .cta-block {
  background: rgba(255,255,255,0.72);
  border-color: rgba(0,0,0,0.1);
}
body.light .cta-block p { color: #555555; }
body.light .cta-btn {
  background: #111111;
  color: #ffffff;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .page-main { padding: 100px 32px 48px; gap: 36px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .info-card.wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  .page-main { padding: 80px 20px 40px; gap: 28px; }
  .page-title { font-size: clamp(28px, 8vw, 40px); }
  .page-sub { font-size: 13px; }
  .cards-grid,
  .cards-grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .info-card.wide { grid-column: span 1; }
  .info-card { padding: 22px 18px; }
  .cta-block { flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 16px; }
  .cta-btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .page-main { padding: 72px 16px 32px; }
}

/* ── LEGAL PAGES ── */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(18,18,18,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.legal-block {
  padding: 28px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-block:last-child { border-bottom: none; }
.legal-block h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.legal-block p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}
.legal-block a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-block a:hover { opacity: 0.75; }

body.light .legal-content {
  background: rgba(255,255,255,0.72);
  border-color: rgba(0,0,0,0.1);
}
body.light .legal-block { border-bottom-color: rgba(0,0,0,0.07); }
body.light .legal-block h3 { color: #111111; }
body.light .legal-block p { color: #555555; }
body.light .legal-block a { color: #111111; }

@media (max-width: 600px) {
  .legal-block { padding: 22px 20px; }
}

/* Aloldalakon lazább overlay – látszódjon a háttér telefon */
body.subpage .page-bg-overlay {
  background: linear-gradient(to right,
    rgba(13,13,13,0.75) 0%,
    rgba(13,13,13,0.35) 45%,
    transparent 70%
  ) !important;
}
