/* Additions to the landing page (styles.css): a footer with all the information pages, and the
   information pages themselves (privacy, terms, account deletion...) in the same look. */

/* Footer: more links than the original three, so they may wrap. */
/* Desktop only: mobile keeps the landing page's own three rows (header, scene, footer). */
@media (min-width: 901px) { .landing { grid-template-rows: minmax(0, 1fr) auto; } }
.footer { min-height: var(--footer-height); flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
.footer-links { flex-wrap: wrap; row-gap: 2px; }
.footer-links a { padding-inline: clamp(10px, 1vw, 20px); white-space: nowrap; }
.footer-links a[aria-current] { color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .footer { padding-block: 6px 10px; }
  .footer-links { justify-content: center; }
  .footer-links a { min-height: 30px; padding: 2px 10px; }
  .footer-links a:first-child { padding-inline-start: 10px; }
  .footer-links a:last-child { padding-inline-end: 10px; }
}

/* Information pages */
.doc { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: #fff; }
.doc-header { padding: 22px var(--page-gutter) 0; }
.doc-brand { display: inline-block; width: clamp(76px, 7vw, 120px); }
.doc-brand img { width: 100%; height: auto; }
.doc-main { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) 20px 56px; font-size: 18px; line-height: 1.75; }
.doc-main h1 { margin: 0 0 6px; font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.doc-main h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--orange); }
.doc-main h2 { margin: 30px 0 6px; font-size: 23px; font-weight: 800; line-height: 1.3; }
.doc-main h2:first-child { margin-top: 0; }
.doc-main p { margin: 0 0 14px; }
.doc-main ul { margin: 0 0 14px; padding-inline-start: 22px; }
.doc-main li { margin-bottom: 4px; }
.doc-main li::marker { color: var(--orange); }
.doc-main .muted { color: var(--muted); font-size: 15px; }
.doc-main .card { margin-top: 24px; }

.note { margin: 18px 0; padding: 14px 18px; border-radius: 14px; background: #fff6e6; font-size: 17px; }
.doc-main label { display: block; margin: 18px 0 6px; font-weight: 700; }
.doc-main input, .doc-main textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d9ded2; border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-size: 17px; line-height: 1.5;
}
.doc-main input:focus, .doc-main textarea:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: transparent; }
.err { margin-top: 6px; color: #b3261e; font-size: 15px; }
.btn {
  display: inline-block; min-height: 48px; padding: 10px 30px; border: 0; border-radius: 10px;
  background: var(--ink); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #2d3329; }
.btn.link { min-height: 0; padding: 8px 0; background: none; color: var(--muted); font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }

.doc-business {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px;
  padding: 14px 20px; color: var(--muted); font-size: 14px; text-align: center;
}
.doc-business a { text-decoration: none; }
.doc .footer { margin-bottom: 8px; }
.doc-main .actions { margin-top: 22px; }
.doc-main button[disabled] { opacity: .6; cursor: wait; }
[hidden] { display: none !important; }

/* Developer credit (Devly) at the end of the footer. */
.footer-credit { direction: ltr; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; opacity: .85; transition: opacity 150ms ease; }
.footer-credit:hover { opacity: 1; }
.footer-credit img { width: auto; height: 16px; }
@media (max-width: 900px) {
  .footer-credit { font-size: 11px; gap: 6px; }
  .footer-credit img { height: 13px; }
}

/* App-store buttons about 20% smaller than the original landing page. */
.store-link img { height: clamp(44px, min(4.7vw, 8.4svh), 90px); }
@media (min-width: 901px) and (max-width: 1100px) { .store-link img { height: min(5vw, 54px); } }
@media (min-width: 901px) and (max-height: 650px) { .store-link img { height: 40px; } }
@media (max-width: 900px) { .store-link img { height: clamp(36px, 10vw, 42px); } }
@media (max-width: 900px) and (max-height: 720px) { .store-link img { height: 36px; } }
@media (max-width: 900px) and (max-height: 600px) { .store-link img { height: 32px; } }

/* Home page: in a Hebrew (RTL) page the scrollbar sits on the left and showed as a white strip beside the
   scene when the window is shorter than the page. Hide the bar; scrolling still works. */
html:has(.landing) { scrollbar-width: none; }
html:has(.landing)::-webkit-scrollbar { display: none; }

/* Desktop: a slightly lower footer (the line and links sit closer to the bottom of the screen). */
@media (min-width: 901px) {
  :root { --footer-height: 58px; }
  .footer { padding-block: 4px 2px; }
}
