/* ===========================
   Supporters Kft. Mobile Apps
   Global Styles
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f9f9f9;
  --bg-card: #ffffff;
  --text: #1e1e1e;
  --text-light: #555555;
  --accent: #2a6496;
  --accent-light: #e8f0f7;
  --border: #dde3e8;
  --white: #ffffff;
  --font: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --max-width: 960px;
  --prose-width: 760px;
  --radius: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===========================
   Header / Nav
   =========================== */

header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.875rem;
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
}

/* ===========================
   Main
   =========================== */

main {
  flex: 1;
  padding: 2.5rem 1.5rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.container-prose {
  max-width: var(--prose-width);
  margin: 0 auto;
}

/* ===========================
   Page header block
   =========================== */

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.page-header .subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
}

.last-updated {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ===========================
   Section
   =========================== */

section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* ===========================
   App card
   =========================== */

.app-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.app-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.app-card p {
  font-size: 0.93rem;
  color: var(--text-light);
  margin: 0;
}

.app-card a {
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 0.25rem;
  display: inline-block;
}

/* ===========================
   Notice box
   =========================== */

.notice {
  background-color: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.93rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.notice strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
}

/* ===========================
   Contact box
   =========================== */

.contact-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.93rem;
}

.contact-box p {
  margin-bottom: 0.4rem;
  color: var(--text);
}

.contact-box p:last-child {
  margin-bottom: 0;
}

/* ===========================
   Prose (legal pages)
   =========================== */

.prose h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.prose p {
  margin-bottom: 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
}

.prose ul {
  margin: 0.4rem 0 0.9rem 1.4rem;
  color: var(--text);
  font-size: 0.95rem;
}

.prose ul li {
  margin-bottom: 0.35rem;
  line-height: 1.65;
}

.prose a {
  color: var(--accent);
}

/* ===========================
   Support sections
   =========================== */

.support-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
}

.support-block h2 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.support-block p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

.support-block ul {
  margin: 0.4rem 0 0 1.3rem;
  font-size: 0.93rem;
  color: var(--text-light);
}

.support-block ul li {
  margin-bottom: 0.25rem;
}

/* ===========================
   Template box
   =========================== */

.template-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* ===========================
   Inline link list
   =========================== */

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.link-list li a {
  font-size: 0.93rem;
  color: var(--accent);
}

/* ===========================
   Footer
   =========================== */

footer {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-company p {
  margin-bottom: 0.2rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-light);
  font-size: 0.83rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 680px) {
  .header-inner {
    position: relative;
  }

  nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.7rem;
    z-index: 99;
  }

  nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .page-header h1 {
    font-size: 1.45rem;
  }
}
