/* No.w.here — Legal pages (light premium theme) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light only;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #444444;
}

/* ── Site header ── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.site-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #111111;
}

.site-back {
  font-size: 0.875rem;
  text-decoration: underline;
  color: #666666;
}

.site-back:hover {
  color: #111111;
}

.site-header-rule {
  max-width: 720px;
  margin: 16px auto 0;
  padding: 0 20px;
  border: 0;
  border-top: 1px solid #eeeeee;
}

/* ── Main content ── */

.legal-document,
.landing-page,
.support-page,
.error-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 48px;
}

.legal-header,
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.legal-header h1,
.page-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111111;
  margin: 0 0 10px;
  line-height: 1.2;
}

.legal-meta,
.page-meta {
  font-size: 0.9375rem;
  color: #888888;
  margin: 0;
}

.legal-content section,
.page-content section {
  margin-bottom: 32px;
}

.legal-content h2,
.page-content h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111111;
  margin: 0 0 12px;
  line-height: 1.4;
}

.legal-content h3,
.page-content h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111111;
  margin: 16px 0 8px;
  line-height: 1.4;
}

.legal-content p,
.page-content p {
  color: #333333;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 12px;
}

.legal-content ul,
.page-content ul {
  color: #333333;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 12px;
  padding-left: 1.35rem;
}

.legal-content li,
.page-content li {
  margin-bottom: 6px;
}

.legal-content li:last-child,
.page-content li:last-child {
  margin-bottom: 0;
}

.legal-closing {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #eeeeee;
  font-size: 0.875rem;
  color: #666666;
  font-style: italic;
}

/* ── Landing / support extras ── */

.page-lead {
  font-size: 1rem;
  color: #555555;
  line-height: 1.65;
  margin: 0 0 28px;
  text-align: center;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 32px;
}

.store-download-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto 20px;
}

.store-inapp-hint {
  display: block;
  margin: 0;
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #222222;
  background: #f2f2f2;
  border-radius: 8px;
  max-width: 28rem;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.store-inapp-hint--static {
  display: block;
}

.store-hint-arrow {
  display: flex;
  justify-content: center;
  margin: 2px 0 6px;
  color: #9a9a9a;
  line-height: 0;
  transform: translateX(-5.75rem);
}

.store-hint-arrow svg {
  display: block;
  width: 22px;
  height: 18px;
}

.store-badge--secondary {
  opacity: 0.72;
}

.btn {
  display: inline-block;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid #111111;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: #333333;
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: #111111;
}

.btn-outline:hover {
  background: #f5f5f5;
  color: #111111;
}

.contact-box {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  margin: 24px 0;
}

.contact-box a {
  text-decoration: none;
  font-weight: 600;
}

.contact-box a:hover {
  text-decoration: underline;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin-bottom: 10px;
}

.link-list a {
  text-decoration: none;
  font-weight: 500;
}

.link-list a:hover {
  text-decoration: underline;
}

/* ── Support bar ── */

.support-bar {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 28px;
}

.support-bar-inner {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.875rem;
  color: #555555;
  text-align: center;
}

.support-bar-inner a {
  color: #111111;
  text-decoration: none;
  font-weight: 500;
}

.support-bar-inner a:hover {
  text-decoration: underline;
}

/* ── Support page ── */

.support-page {
  max-width: 880px;
}

.support-page .page-header {
  margin-bottom: 36px;
}

.support-page .page-lead {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes support-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.support-animate {
  animation: support-fade-in-up 0.55s ease both;
}

.support-animate-delay-1 { animation-delay: 0.06s; }
.support-animate-delay-2 { animation-delay: 0.12s; }
.support-animate-delay-3 { animation-delay: 0.18s; }
.support-animate-delay-4 { animation-delay: 0.24s; }
.support-animate-delay-5 { animation-delay: 0.30s; }
.support-animate-delay-6 { animation-delay: 0.36s; }
.support-animate-delay-7 { animation-delay: 0.42s; }
.support-animate-delay-8 { animation-delay: 0.48s; }
.support-animate-delay-9 { animation-delay: 0.54s; }
.support-animate-delay-10 { animation-delay: 0.60s; }

@media (prefers-reduced-motion: reduce) {
  .support-animate {
    animation: none;
  }
}

.support-contact-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 40px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.support-contact-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.support-contact-main {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.support-contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  color: #111111;
}

.support-contact-icon svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
}

.support-contact-text h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111111;
  margin: 0 0 6px;
  line-height: 1.35;
}

.support-contact-text p {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

.support-contact-divider {
  height: 1px;
  background: #eeeeee;
  margin: 24px 0;
}

.support-contact-email {
  text-align: left;
  min-width: 0;
}

.support-contact-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 8px;
}

.support-contact-link {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  transition: color 0.15s ease;
}

.support-contact-link:hover {
  color: #444444;
  text-decoration: underline;
}

.support-contact-response {
  font-size: 0.8125rem;
  color: #888888;
  margin: 10px 0 0;
  line-height: 1.4;
}

.support-faq-section {
  margin-bottom: 40px;
}

.support-faq-heading {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 700;
  text-align: left;
  color: #111111;
  margin: 0 0 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.support-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.support-faq-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  padding: 22px 22px 20px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.support-faq-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
  border-color: #e0e0e0;
}

.support-faq-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111111;
  margin: 0 0 12px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.support-faq-card h3 .faq-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: 1px solid #eeeeee;
  border-radius: 9px;
  color: #444444;
}

.support-faq-card h3 .faq-icon svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
}

.support-faq-card h3 .faq-icon.faq-icon-danger {
  background: #fff5f5;
  border-color: #fde2e2;
  color: #dc3545;
}

.support-faq-card h3 .faq-title {
  flex: 1;
  min-width: 0;
  padding-top: 5px;
}

.support-faq-card p {
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.65;
  margin: 0 0 8px;
  flex: 1;
}

.support-faq-card p:last-child {
  margin-bottom: 0;
}

.support-faq-card ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.65;
  flex: 1;
}

.support-faq-card ol li {
  margin-bottom: 6px;
}

.support-faq-card ol li:last-child {
  margin-bottom: 0;
}

.support-privacy-card {
  background: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 8px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.support-privacy-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.support-privacy-card h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111111;
  margin: 0 0 8px;
}

.support-privacy-card p {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.support-privacy-card p:last-of-type {
  margin-bottom: 20px;
}

.btn-privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #111111;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid #111111;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-privacy:hover {
  background: #111111;
  color: #ffffff;
  transform: scale(1.02);
}

.btn-privacy-arrow {
  transition: transform 0.2s ease;
}

.btn-privacy:hover .btn-privacy-arrow {
  transform: translateX(3px);
}

@media (min-width: 640px) {
  .support-faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    align-items: stretch;
  }

  .support-contact-card {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
  }

  .support-contact-main {
    flex: 1;
    min-width: 0;
    padding: 32px 28px 32px 32px;
  }

  .support-contact-divider {
    width: 1px;
    height: auto;
    margin: 0;
    align-self: stretch;
  }

  .support-contact-email {
    flex-shrink: 0;
    width: min(100%, 300px);
    max-width: 300px;
    padding: 32px 28px 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f5f5f5;
    border-left: 1px solid #eeeeee;
  }

  .support-contact-divider {
    display: none;
  }
}

@media (min-width: 1024px) {
  body.page-support .site-header,
  body.page-support .site-header-rule,
  body.page-support .site-footer {
    max-width: 880px;
  }
}

/* ── Footer ── */

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px calc(48px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eeeeee;
  text-align: center;
}

.site-footer-copy {
  font-size: 0.8125rem;
  color: #999999;
  margin: 0 0 14px;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 0.8125rem;
}

.site-footer-nav a {
  color: #666666;
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: #111111;
  text-decoration: underline;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .site-header {
    padding: 18px 16px 0;
  }

  .site-header-rule {
    padding: 0 16px;
    margin-top: 14px;
  }

  .legal-document,
  .landing-page,
  .support-page,
  .error-page {
    padding: 28px 16px 40px;
  }

  .support-contact-card {
    padding: 22px 20px;
  }

  .support-contact-email {
    padding-top: 4px;
  }

  .support-contact-link {
    font-size: 0.875rem;
  }

  .support-privacy-card {
    padding: 24px 18px;
  }

  .legal-header,
  .page-header {
    margin-bottom: 32px;
  }

  .support-bar {
    padding: 0 16px 24px;
  }

  .site-footer {
    padding: 24px 16px calc(40px + env(safe-area-inset-bottom, 0px));
  }
}
