/* The legal pages (termeni / terms, confidentialitate / privacy, retragere / withdrawal), and only them.
   The invitations' look from nunta.css: cream paper, deep green, gold hairlines, Cormorant Garamond and DM Sans,
   in one readable column. Self-contained, so changes to nunta.css never move these pages. */

:root {
  color-scheme: light;
  --cream: #faf6ec;
  --paper: #fffcf4;
  --sage: #edf2e8;
  --green: #31574b;
  --green-deep: #24433a;
  --ink: #30483e;
  --text: #45534a;
  --muted: #5b6458;
  --gold: #b38750;
  --gold-soft: #d6bd91;
  --gold-faint: #eadfc6;
  --gold-text: #86622f;
  --line: #e6dfcd;
  --serif: "Cormorant Garamond", "Cormorant fallback", "Cormorant fallback R", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "DM Sans fallback", "DM Sans fallback R", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans-caps: "DM Sans", "DM Sans caps fallback", "DM Sans caps fallback R", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(16px, 5vw, 72px);
  --top-h: 68px;
  --col: 760px;
}

/* The same metric-matched stand-ins as nunta.css, so nothing jumps when the web fonts arrive. */
@font-face { font-family: "Cormorant fallback"; src: local("Georgia"); size-adjust: 89%; }
@font-face { font-family: "Cormorant fallback"; font-style: italic; src: local("Georgia Italic"); size-adjust: 78%; }
@font-face { font-family: "DM Sans fallback"; font-weight: 400; src: local("Arial"); size-adjust: 104.2%; }
@font-face { font-family: "DM Sans fallback"; font-weight: 500; src: local("Arial"); size-adjust: 106.2%; }
@font-face { font-family: "DM Sans fallback"; font-weight: 600 700; src: local("Arial Bold"); size-adjust: 100.9%; }
@font-face { font-family: "DM Sans caps fallback"; font-weight: 600 700; src: local("Arial Bold"); size-adjust: 93%; }
@font-face { font-family: "Cormorant fallback R"; src: local("Noto Serif"), local("NotoSerif-Regular"); size-adjust: 83.5%; }
@font-face { font-family: "Cormorant fallback R"; font-style: italic; src: local("Noto Serif Italic"), local("NotoSerif-Italic"); size-adjust: 76.4%; }
@font-face { font-family: "DM Sans fallback R"; font-weight: 400 700; src: local("Roboto"), local("Roboto-Regular"); size-adjust: 106%; }
@font-face { font-family: "DM Sans caps fallback R"; font-weight: 600 700; src: local("Roboto Bold"), local("Roboto-Bold"), local("Roboto"); size-adjust: 100%; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 16.5px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }
a { color: var(--green); text-underline-offset: 4px; text-decoration-color: rgba(49, 87, 75, .4); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, p, li, dd, td, th { overflow-wrap: break-word; }
/* Long addresses (emails, URLs) break rather than push the page sideways on a phone */
.doc a { overflow-wrap: anywhere; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
main:focus { outline: none; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nw { white-space: nowrap; }

.skip {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--green);
  color: #fffdf4;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-170%);
  transition: transform .2s ease;
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 236, .92);
  border-bottom: 1px solid rgba(214, 189, 145, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.top-in {
  max-width: 1360px;
  min-height: var(--top-h);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.mark-orn {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.mark-orn::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  background: var(--gold);
}
.mark-text { display: flex; flex-direction: column; align-items: flex-start; }
.mark-name {
  display: block;
  padding: 4px 0 2px;
  color: var(--ink);
  font: 600 22px/1.1 var(--serif);
  letter-spacing: .01em;
  text-decoration: none;
}
.mark-by {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font: 500 9.5px/16px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}
.mark-by:hover { color: var(--green); text-decoration: underline; }
.top-nav { display: flex; align-items: center; gap: 30px; }
.top-nav ul {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top-nav ul a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s ease;
}
.top-nav ul a:hover,
.top-nav ul a[aria-current="page"] { border-bottom-color: var(--gold); }
/* Language switch: the same document in the other language */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.lang-code {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 6px 0 calc(6px + .14em);
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold-text);
  font: 600 11px/1 var(--sans-caps);
  letter-spacing: .14em;
}
.lang:hover .lang-code { background: rgba(214, 189, 145, .2); }
.lang:hover .lang-name { text-decoration: underline; text-decoration-color: var(--gold); }

/* -------------------------------------------------------------- document */
.doc {
  max-width: calc(var(--col) + 32px);
  margin: 0 auto;
  padding: 56px 16px 80px;
}
.doc-head {
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gold-soft);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--gold-text);
  font: 600 12px/1.4 var(--sans-caps);
  letter-spacing: .2em;
  text-transform: uppercase;
}
/* The platform's name keeps its own capitals: Alaturi.App. */
.eyebrow.is-name { text-transform: none; letter-spacing: .08em; }
.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
h1 {
  margin: 0;
  color: var(--ink);
  font: 600 clamp(38px, 7vw, 56px)/1.08 var(--serif);
  text-wrap: balance;
}
.doc-ver {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.doc-ver b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-lead {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.65;
}

/* Table of contents */
.toc {
  padding: 18px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.doc .toc h2 {
  margin: 0 0 8px;
  color: var(--gold-text);
  font: 600 12px/1.4 var(--sans-caps);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.doc .toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
  font-size: 15px;
  line-height: 1.45;
}
.doc .toc li { margin: 0; padding: 3px 0; break-inside: avoid; }
.toc a {
  display: inline-flex;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.toc a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.toc .n { flex: none; min-width: 1.6em; color: var(--gold-text); font-variant-numeric: lining-nums tabular-nums; }

/* Sections */
.doc section { padding-top: 38px; }
.doc h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font: 600 clamp(26px, 4.2vw, 31px)/1.2 var(--serif);
  text-wrap: balance;
}
.doc h2 .n,
.doc h3 .n { margin-right: .08em; color: var(--gold-text); font-variant-numeric: lining-nums; }
.doc h3 {
  margin: 26px 0 8px;
  color: var(--ink);
  font: 600 22px/1.3 var(--serif);
}
.doc p { margin: 0 0 14px; }
.doc ul,
.doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 5px 0; padding-left: 4px; }
.doc li::marker { color: var(--gold-text); }
.doc strong { color: var(--ink); font-weight: 600; }

/* Company details block */
.company {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 2px solid var(--gold-soft);
  background: var(--paper);
  font-style: normal;
  line-height: 1.65;
}

/* "Pe scurt" / "In short" */
.doc .box {
  margin: 30px 0 8px;
  padding: 16px 20px 6px;
  border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
  background: var(--sage);
}
.doc .box h2 { font-size: clamp(24px, 3.6vw, 27px); }

/* Tables (plans, extensions, retention) */
.table-wrap { max-width: 100%; margin: 8px 0 18px; overflow-x: auto; }
.table-wrap.narrow { max-width: 460px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.5;
}
th,
td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
thead th { background: #f3eddf; color: var(--ink); font-weight: 600; }
tbody th { color: var(--ink); font-weight: 600; }

/* What / why / legal ground / how long, per kind of data (privacy) */
.facts {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 8px 18px;
  margin: 8px 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.facts dt { color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.7; }
.facts dd { margin: 0; }
.facts dd ul { margin: 0; }

/* The model withdrawal form */
.form {
  margin: 18px 0 8px;
  padding: 28px 28px 22px;
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  background: var(--paper);
}
.doc .form h3 { margin: 0 0 4px; text-align: center; font-size: 25px; }
.form-note { color: var(--muted); font-size: 15px; font-style: italic; text-align: center; }
.doc .form-lines { margin: 22px 0 10px; padding: 0; list-style: none; }
.doc .form-lines li { margin: 0 0 18px; padding: 0; }
.fill {
  display: block;
  height: 2.1em;
  border-bottom: 1px dotted var(--muted);
}
.doc .form-foot { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--gold-soft);
  background: #f3eddf;
}
.foot-in {
  max-width: 1360px;
  margin: 0 auto;
  padding: 34px var(--pad) 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.foot-mark { margin: 0; color: var(--ink); font: 500 21px/1.3 var(--serif); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-nav a {
  padding: 6px 0;
  color: var(--ink);
  font-size: 14.5px;
  text-decoration: none;
}
.foot-nav a:hover { text-decoration: underline; }
.foot-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); }
.foot-copy {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
/* The company's legal details and ANPC's SAL pictogram, as on every page of the site. */
.foot-legal {
  flex-basis: 100%;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.foot-legal a { color: inherit; }
/* The cause we stand beside (Asociația Povestea Mea), as in the other pages' footers. */
.foot-cause { flex-basis: 100%; margin: -6px 0 0; color: var(--muted); font-size: 13px; }
.foot-cause a { color: inherit; }
.foot-anpc { display: inline-block; line-height: 0; }
.foot-anpc img { display: block; width: 201px; height: 50px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .top-nav ul { display: none; }
}

@media (max-width: 640px) {
  :root { --top-h: 60px; }
  body { font-size: 16px; }
  .mark-name { font-size: 20px; }
  .top-in { gap: 12px; }
  .lang { justify-content: center; min-width: 44px; }
  .lang-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .doc { padding-top: 36px; padding-bottom: 56px; }
  .doc-lead { font-size: 17px; }
  .toc { padding: 16px 16px 18px; }
  .doc .toc ol { columns: 1; }
  .doc section { padding-top: 32px; }
  .doc .box { padding: 14px 16px 4px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 14px 16px; }
  .facts dd { margin-bottom: 10px; }
  .facts dd:last-child { margin-bottom: 0; }
  .form { padding: 22px 16px 18px; }
  table { font-size: 14.5px; }
  th,
  td { padding: 8px 9px; }
  /* One column of comfortable tap targets */
  .foot-nav { flex-direction: column; gap: 0; width: 100%; }
  .foot-nav a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; }
}

@media (max-width: 400px) {
  .mark { gap: 11px; }
}

@media (max-width: 345px) {
  .mark-sol { display: none; }
  .top-in { gap: 10px; }
  .mark-orn { display: none; }
  .mark-name { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .skip { border: 1px solid; }
}

/* Printed (or saved as PDF): the text, no menus */
@media print {
  html,
  body { background: #fff; }
  body { color: #000; font-size: 11pt; }
  .skip,
  .top-nav,
  .toc,
  .foot-nav,
  .foot-anpc { display: none; }
  .top { position: static; border-bottom: 1px solid #999; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .doc { max-width: none; padding: 18px 0; }
  .doc h2,
  .doc h3 { break-after: avoid; }
  .form,
  .facts,
  table { break-inside: avoid; }
  a { color: inherit; }
}
