/* ============================================================
   jogi / style.css
   Közös stílus a jogi dokumentumokhoz (digitális esküvő).
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap");

:root {
  --rose:        #D4537E;
  --rose-hover:  #B8365F;
  --rose-light:  #F4C0D1;
  --rose-pale:   #FDF0F5;
  --rose-border: #F0AECA;
  --cream:       #FBF8F4;
  --cream-dark:  #F4EFE8;
  --warm-gray:   #6B6560;
  --mid:         #3D3530;
  --dark:        #1A1614;
  --gold:        #B8965A;
  --border:      rgba(212,83,126,0.14);
  --border-mid:  rgba(212,83,126,0.28);
  --shadow-sm:   0 2px 8px rgba(26,22,20,0.06);
  --shadow-md:   0 8px 32px rgba(26,22,20,0.10);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-pill: 100px;
  --content:     860px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--dark);
  color: #fff;
  padding: 12px 24px;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 14px;
  font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(251,248,244,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.nav-logo .accent { color: var(--rose); font-style: italic; }

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 14px;
  color: var(--warm-gray);
  transition: color .2s;
}
.nav-links a:hover { color: var(--rose); }

.hero {
  padding: 84px 20px 40px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -140px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(212,83,126,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--content);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose-pale);
  border: 1px solid var(--rose-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--rose-hover);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.heading em {
  color: var(--rose);
  font-style: italic;
}
.hero-text {
  max-width: 720px;
  font-size: 17px;
  font-weight: 300;
  color: var(--warm-gray);
  margin: 0;
}

.section { padding: 24px 20px 80px; }
.section-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 32px;
}
.toc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px;
  box-shadow: var(--shadow-sm);
}
.toc-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.toc-card p {
  margin: 0 0 14px;
  color: var(--warm-gray);
  font-size: 14px;
  font-weight: 300;
}
.toc-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rose);
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-title em {
  color: var(--rose);
  font-style: italic;
}

.intro-note {
  color: var(--warm-gray);
  font-size: 15px;
  font-weight: 300;
  margin: 0 0 28px;
}

.meta-box {
  background: var(--rose-pale);
  border: 1px solid var(--rose-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 0 0 28px;
}
.meta-box strong {
  color: var(--dark);
  display: block;
  margin-bottom: 4px;
}
.meta-box p { margin: 0 0 4px; font-size: 14px; }

.content-block + .content-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.content-block h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--dark);
}
.content-block h4 {
  font-size: 15px;
  margin: 16px 0 6px;
  color: var(--dark);
}
.content-block p {
  margin: 0 0 10px;
  color: var(--warm-gray);
  font-size: 15px;
  font-weight: 300;
}
.content-block ul, .content-block ol {
  margin: 0;
  padding-left: 18px;
  color: var(--warm-gray);
}
.content-block li {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 300;
}
.content-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}
.content-block th, .content-block td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--warm-gray);
  font-weight: 300;
}
.content-block th {
  font-weight: 500;
  color: var(--dark);
  background: var(--cream-dark);
}

.callout {
  margin-top: 20px;
  background: var(--cream-dark);
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 16px;
  color: var(--mid);
  font-size: 14px;
}
.callout strong { color: var(--dark); }

.footer {
  background: var(--dark);
  padding: 42px 20px 30px;
  color: rgba(255,255,255,0.72);
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 380px; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #fff;
  margin: 0 0 10px;
}
.footer-logo .accent { color: var(--rose); font-style: italic; }
.footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

@media (max-width: 820px) {
  .toc { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav {
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .nav-links { gap: 14px; }
  .hero { padding-top: 56px; }
}
