
/* ------------------------------------------------------------- */
/* Global Styles & Variables                                     */
/* ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --clr-bg-start: #e0e7ff;
  --clr-bg-end: #f9fafb;
  --clr-primary: #6c63ff;
  --clr-primary-dark: #5548c8;
  --clr-text: #2d2d2d;
  --radius: 12px;
  --transition: 0.3s;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  --font-sans: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--clr-bg-start), var(--clr-bg-end));
  color: var(--clr-text);
  overflow-x: hidden;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--clr-primary-dark);
}

.btn {
  display: inline-block;
  padding: 0.85em 2em;
  border: none;
  border-radius: var(--radius);
  background: var(--clr-primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.3);
  transition: transform var(--transition), background var(--transition);
}

.btn:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px) scale(1.02);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--clr-primary);
}

/* ------------------------------------------------------------- */
/* Form Base Styles (Shared)                                     */
/* ------------------------------------------------------------- */
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border var(--transition);
}

.form-group input:focus {
  border-color: var(--clr-primary);
  outline: none;
}

.form-check-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.form-check-inline input[type="checkbox"] {
  margin-top: 0;
}

.form-check-inline label {
  line-height: 1;
}

/* ------------------------------------------------------------- */
/* Register Page Styles                                          */
/* ------------------------------------------------------------- */
.page-register,
.page-login,
.page-dashboard {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
  background: linear-gradient(135deg, var(--clr-bg-start), var(--clr-bg-end));
}

.card-register,
.card-login,
.card-dashboard {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 700px;
  width: 100%;
}

.card-dashboard {
  margin: 2rem auto;
  text-align: center;
}

.card-dashboard .card-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.card-dashboard .form-group-vertical form {
  margin: 0.5rem 0;
}

.card-dashboard .form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.card-dashboard .input-field {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 200px;
}

.card-dashboard .generated-image {
  margin-top: 1.5rem;
}

.card-dashboard .generated-image img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-dashboard .offers-output {
  margin-top: 2rem;
  text-align: left;
}

/* ===================== */
/* Home Page - Unauthenticated */
/* ===================== */
.unauthenticated-home {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
}

.profile-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.profile-image {
  max-width: 100%;
  border-radius: 1rem;
  height: 800px;
  margin-bottom: 1.5rem;
  height: auto;
  object-fit: cover;
}

.profile-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.profile-text p {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.6;
}

/* ===================== */
/* DeepDesires-style Create Page */
/* ===================== */
.page-deepcreate {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--clr-bg-start), var(--clr-bg-end));
  padding: 0.5rem 1rem 0.5rem;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.deep-grid {
  width: 100%;
  max-width: 3380px;
  display: grid;
  grid-template-columns: 260px 1fr 240px;
  gap: 1.5rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  align-items: stretch;
  height: 100%;
  min-height: 400px;
}

.page-deepcreate .left-panel,
.page-deepcreate .center-panel,
.page-deepcreate .right-panel {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.page-deepcreate .left-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-deepcreate textarea {
  resize: none;
  border-radius: var(--radius);
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  font-family: var(--font-sans);
  margin-bottom: 0.25rem;
}

.page-deepcreate .form-range {
  accent-color: var(--clr-primary);
  margin-bottom: 0.5rem;
}

.page-deepcreate .left-panel .btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.page-deepcreate .center-panel {
  border: 2px dashed #ccc;
  text-align: center;
  color: #999;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  height: 100%;
  overflow: hidden;
}

.page-deepcreate .right-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  min-height: 100%;
  gap: 1rem;
}

.page-deepcreate .bottom-bar {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  width: 100%;
  max-width: 3380px;
  box-sizing: border-box;
  margin-top: 1.5rem;
}

.page-deepcreate .bottom-bar .btn {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

button,
.btn,
.btn-outline-primary,
.btn-outline-secondary,
.btn-primary,
input[type="radio"].btn-check + label,
input[type="radio"] + label.btn,
input[type="submit"],
input[type="button"] {
  border-radius: var(--radius) !important;
}

.aspect-ratio-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.page-deepcreate label[for="NegativePrompt"] {
  display: block;
  margin-top: 0rem;
  font-weight: 500;
}

.page-footer {
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ===================== */
/* Prompts Panel Styles  */
/* ===================== */
.card-prompts {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  padding: 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto 2rem auto;
  width: 100%;
  max-width: 3380px;
  box-sizing: border-box;
}

.card-prompts .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-prompts label {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5rem;
  height: 1.5rem; /* rovnaká výška pre oba labely */
  margin-bottom: 0.5rem;
  display: block;
}

.card-prompts textarea {
  height: 220px;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  box-sizing: border-box;
  resize: none;
}



/* ===================== */
/* Error Message Styling */
/* ===================== */
.page-deepcreate .alert-danger {
  max-width: 3380px;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  margin: 0 auto 1rem auto;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
}


/* ------------------------------------------------------------- */
/* Navigation Styles (Login Highlight)                           */
/* ------------------------------------------------------------- */
.nav-highlight {
  background: linear-gradient(135deg, #9b8eff, #7b6eff);
  color: white !important;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 6px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.nav-highlight:hover {
  background: linear-gradient(135deg, #7b6eff, #5a4ee6);
  transform: translateY(-1px);
}


/* ===================== */
/* Terms & Privacy Pages (Refined for Legal Look) */
/* ===================== */

.page-terms,
.page-privacy {
    font-family: 'Georgia', serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #111;
    background-color: #fff;
    padding: 3rem 2rem;
    margin: 3rem auto;
    max-width: 800px;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.page-terms h1,
.page-privacy h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-transform: none;
    color: #000;
    line-height: 1.3;
}

.page-terms h2,
.page-privacy h2 {
    font-size: 1.15rem;
    font-weight: bold;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
    line-height: 1.4;
}

.page-terms p,
.page-privacy p {
    margin-bottom: 1rem;
    text-align: left;
}

.page-terms ul,
.page-privacy ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-terms li,
.page-privacy li {
    margin-bottom: 0.6rem;
    text-align: left;
}

.page-terms strong,
.page-privacy strong {
    font-weight: 600;
}


/* ---------------------- */
/* Account Management     */
/* ---------------------- */

.data-buttons {
    display: flex;
    gap: 1rem; /* Medzera medzi tlačidlami */
    margin-top: 1rem;
    margin-left: 1rem;  /* mierne doprava na menších obrazovkách */
}

@media (min-width: 768px) {
    .data-buttons {
        margin-left: 6rem; /* viac doprava na väčších obrazovkách */
    }
}

.data-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Force alignment to the right for navbar user section */
.navbar-user {
    margin-left: auto !important;
}

/* ------------------------------------------------------------- */
/* Logo Text (DeepDesires)                                      */
/* ------------------------------------------------------------- */
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  background: linear-gradient(90deg, #7f00ff, #e100ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* ===================== */
/* Footer                */
/* ===================== */

.bottom-bar {
    display: flex;
    justify-content: flex-start;
    align-items: left;
    font-size: 0.9rem;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    color: var(--clr-text);
    margin-top: 2rem;
    line-height: 1.5;
}

/* Wrapper pre footer obsah */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: left;
    gap: 0.5rem;
}

/* Rovnaké medzery medzi bodkami a odkazmi */
.footer-links .separator {
    margin: 0 0.5rem;
    color: #999;
    font-weight: 500;
}



/* ------------------------------------------------------------- */
/* LOGO + TEXT STYLES                                           */
/* ------------------------------------------------------------- */

.logo-img {
    height: 40px; /* Zväčšené mierne nad veľkosť textu (22.4px) */
    width: auto;
    vertical-align: middle;
    transition: transform 0.2s ease-in-out;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 600;
    font-size: 1.4rem;
    color: #5f259f; /* alebo #000 podľa dizajnu */
    font-family: 'Poppins', sans-serif;
}


/* ------------------------------------------------------------- */
/* Manual Offset for Centered Navbar Links                      */
/* ------------------------------------------------------------- */
/* Trieda použiteľná na jemné manuálne dorovnanie navigačných
   odkazov v strede navbaru – keď vizuálne nesedia úplne nad sekciou
   s promptami. Hodnota 'left' sa dá jemne upraviť podľa potreby. */

.center-nav-offset {
  position: relative;
  left: 1370px; /* posunie obsah doprava o 20px – uprav podľa potreby */
}


/* ------------------------------------------------------------- */
/* Navigation Styles (Login Highlight)                           */
/* ------------------------------------------------------------- */
.nav-highlight {
  background: linear-gradient(135deg, #9b8eff, #7b6eff);
  color: white !important;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 6px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.nav-highlight:hover {
  background: linear-gradient(135deg, #7b6eff, #5a4ee6);
  transform: translateY(-1px);
}

/* Posun navigácie pre neprihláseného používateľa */
.nav-offset-unauth {
  position: relative;
  left: 1350px;
}

/* ------------------------------------------------------------- */
/* Logo - stabilné s grid navbarom                               */
/* ------------------------------------------------------------- */

.logo-container {
  height: 60px;        /* výška navbaru */
  width: 220px;        /* pevná šírka stĺpca v gride (doladíš 200–260px) */
  max-width: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.logo-img {
  width: 100%;         /* vyplní šírku kontajnera */
  height: auto;        /* drží proporcie */
  object-fit: contain;
  transform: none;
  transition: transform 0.2s ease-in-out;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* nech sa menu neláme */
.navbar-nav { flex-wrap: nowrap; }

/* ===================== */
/* Loading Spinner       */
/* ===================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(108, 99, 255, 0.2);
    border-top-color: var(--clr-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay .loading-text {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-primary);
    font-family: var(--font-sans);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto; /* logo | stred | pravé akcie */
  align-items: center;
}

.nav-center {
  justify-self: center;
  transform: translateX(var(--center-nudge, 0));
}

body.auth   { --center-nudge: 114px; }
body.unauth { --center-nudge: 0px; }

.navbar, .auth-actions { position: relative; z-index: 10; }


/* ===== Legal docs – FINAL, single source of truth ===== */

.page-legal{
  --legal-max: 960px;
  --pad: clamp(1.25rem, 1.2vw + 1rem, 2rem);
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17,24,39,.08);
  --shadow: 0 10px 30px rgba(17,24,39,.06);

  margin: 2.5rem auto 4rem;
  padding: 0 1rem;
  color: var(--text);
  line-height: 1.75;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* karta vnútri .container – komfortná šírka */
.page-legal .card-legal{
  max-width: var(--legal-max);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: var(--pad);
}

/* nadpisy */
.page-legal h1{
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: .25rem 0 .75rem;
}
.page-legal h2{
  font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  font-weight: 650;
  margin: 1.75rem 0 .75rem;
  padding-top: .25rem;
  border-top: 1px solid var(--border);
}

/* podpora pre tvoje triedy */
.page-legal .small-title{
  /* desktop: 1–2 riadky, žiadne násilné lámanie */
  font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: .75rem;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}
@media (min-width: 768px){
  /* na desktope nech <br> funguje ako medzera, nie ako nový riadok */
  .page-legal .small-title br{
    display: inline-block;
    width: .5ch; height: 0; line-height: 0; vertical-align: baseline;
  }
}

.page-legal .small-subtitle{
  font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  font-weight: 650;
  margin: 1.75rem 0 .75rem;
  padding-top: .25rem;
  border-top: 1px solid var(--border);
}

.page-legal .legal-paragraph{ margin: .75rem 0; }

/* meta riadok (dátumy) */
.page-legal .legal-meta{
  color: var(--muted);
  font-size: .95rem;
  margin-top: .25rem;
  margin-bottom: 1.5rem;
}

/* text, zoznamy, odkazy */
.page-legal p{ margin: .75rem 0; }
.page-legal ul{ padding-left: 1.25rem; margin: .5rem 0 1rem; }
.page-legal li + li{ margin-top: .35rem; }
.page-legal strong{ font-weight: 600; }
.page-legal a{
  color: var(--clr-primary, #6c63ff);
  text-decoration: none;
  font-weight: 600;
}
.page-legal a:hover{ text-decoration: underline; }

/* callout (voliteľné zvýraznenie) */
.page-legal .legal-callout{
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--clr-primary, #6c63ff);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

/* tabuľky */
.page-legal table{
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .975rem;
}
.page-legal th, .page-legal td{
  border: 1px solid var(--border);
  padding: .65rem .75rem;
  text-align: left;
}
.page-legal th{
  background: linear-gradient(180deg,#fbfbfe,#f6f7ff);
  font-weight: 600;
}

/* jemný divider */
.page-legal hr{
  height: 1px; border: 0;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 1.5rem 0;
}

/* prvé H2 bez horného dividera */
.page-legal h2:first-of-type{
  border-top: 0;
  padding-top: 0;
  margin-top: 1.25rem;
}

/* lepší anchor scroll pod fix navbarom */
.page-legal h2, .page-legal h3{ scroll-margin-top: 96px; }

/* print */
@media print{
  .page-legal .card-legal{ box-shadow: none; border-color: #ddd; }
}


/* T&C title – fix na 2 riadky na desktopoch */
@media (min-width: 768px){
  .page-legal .small-title{
    /* šírka titulu riadená v znakoch → stabilne 2 riadky */
    max-width: 32ch;                 /* doladíš na 30–36ch podľa oka */
    margin-left: auto;
    margin-right: auto;
    text-align: center;

    font-size: clamp(1.15rem, 0.75rem + 0.8vw, 1.4rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
  }
  /* <br> na desktope zrušíme, nech nerobí extra zlom */
  .page-legal .small-title br{ display: none; }
}


/* ===== Legal: unify main heading sizes (Privacy h1 & Terms .small-title) ===== */
.page-legal h1,
.page-legal .small-title{
  font-size: clamp(1.2rem, 0.8rem + 0.8vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: .25rem;
  margin-bottom: .75rem;
  text-wrap: balance;
}

/* (nechaj si svoje 2-riadkové obmedzenie len pre Terms titulok) */
@media (min-width: 768px){
  .page-legal .small-title{
    max-width: 32ch;           /* doladíš 30–36ch podľa oka */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .page-legal .small-title br{ display: none; }
}


/* Legal: Privacy h1 centrovať ako Terms title */
@media (min-width: 768px){
  .page-legal h1{
    max-width: 32ch;      /* rovnaká šírka ako .small-title */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-wrap: balance;
  }
}

/* (voliteľné) meta riadok pod nadpisom do stredu tiež */
.page-legal .legal-meta{
  text-align: center;
}

/* Legal – dvojriadkový nadpis pre Privacy */
.page-legal .legal-title{
  text-align: center;
  max-width: 32ch;          /* rovnaká šírka ako Terms title */
  margin: 0 auto .75rem;
  font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.6rem); /* rovnaká veľkosť ako Terms */
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page-legal .legal-main{
  white-space: nowrap;      /* drž prvý riadok pokope */
}

.page-legal .legal-sub{
  display: block;           /* druhý riadok */
  font-weight: 700;
}

@media (max-width: 420px){
  /* na veľmi úzkom mobile dovolíme zlomiť aj prvý riadok, aby nič nepretieklo */
  .page-legal .legal-main{ white-space: normal; }
}

/* --- Legal titles: Privacy + Terms rovnaká veľkosť a vzhľad --- */
.page-legal h1.legal-title,
.page-legal h1.small-title {
  font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.6rem) !important; /* rovnaké pre oba */
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 auto .75rem;
  text-align: center;
  max-width: 32ch;  /* rovnaká šírka bloku */
}

/* Privacy: dvojriadkové lámanie */
.page-legal h1.legal-title .legal-main { white-space: nowrap; }
.page-legal h1.legal-title .legal-sub  { display: block; font-weight: 700; }

@media (max-width: 420px){
  .page-legal h1.legal-title .legal-main { white-space: normal; }
}


/* --- Legal titles: menšie a jednotné pre Privacy aj Terms --- */
.page-legal h1.legal-title,
.page-legal h1.small-title {
  font-size: clamp(1.05rem, 0.6rem + 0.8vw, 1.35rem) !important; /* menšie */
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-align: center;
  margin: 0 auto .75rem;
  max-width: 30ch;  /* drží rozumnú šírku nadpisu */
}

/* Privacy: rozdeľ na 2 riadky (druhý je “(Privacy Policy)”) */
.page-legal h1.legal-title .legal-main { white-space: nowrap; }
.page-legal h1.legal-title .legal-sub  { display: block; font-weight: 700; }

/* na veľmi úzkom mobile dovoľ zalomiť aj prvý riadok */
@media (max-width: 420px){
  .page-legal h1.legal-title .legal-main { white-space: normal; }
}
