/* Shared styles for static legal pages (privacy-policy, terms-of-service).
   Mirrors PublicLayout.module.css (header, footer) and the antd look of the former React pages. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fdf9f9;
  color: rgba(0, 0, 0, 0.88);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
    'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-size: 14px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #1677ff;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

/* ========== Header ========== */
.header {
  background: #fdf9f9;
  width: 100%;
  height: 64px;
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logoContainer {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
}

.logoImage {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
}

.logoText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.logoTitleMain {
  font-size: 16px;
  font-weight: 700;
  color: #ca4358;
  line-height: 24px;
}

.logoTitleSub {
  font-size: 16px;
  font-weight: 700;
  color: #ca4358;
  line-height: 24px;
}

.logoTitleSubShort {
  display: none;
}

.authButtons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 35px;
  font-size: 14px;
  border: 1px solid #ca4358;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
}

.btnLogin {
  background: #ca4358;
  color: #ffffff;
}

.btnLogin:hover {
  background: #be3f52;
  border-color: #be3f52;
}

.btnRegister {
  background: #ffffff;
  color: #ca4358;
}

/* ========== Main content ========== */
.content {
  flex: 1;
  width: 100%;
}

.page {
  background: #ffffff;
  padding: 24px;
  max-width: 1040px;
  margin: 24px auto 32px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(0, 0, 0, 0.45);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: rgba(0, 0, 0, 0.88);
}

.breadcrumb .current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(0, 0, 0, 0.88);
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.pageHeader {
  text-align: center;
  margin-bottom: 40px;
}

.pageHeader h1 {
  margin: 0 0 19px;
  color: #2c3e50;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.23;
}

.updated {
  margin: 0;
  font-size: 16px;
  color: #7f8c8d;
  font-style: italic;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.section {
  margin-bottom: 40px;
}

.section h2 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  color: #34495e;
  border-bottom: 2px solid #3498db;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
}

.section h3 {
  margin: 24px 0 12px;
  color: #555555;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.section p {
  margin: 0 0 16px;
  text-align: justify;
  font-size: 16px;
  line-height: 1.8;
}

.section ul {
  margin: 0 0 0 30px;
  padding-left: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.8;
}

.section ul + p {
  margin-top: 16px;
}

.section strong {
  font-weight: 600;
}

.highlight {
  color: #e74c3c;
  font-weight: 600;
}

.textLink {
  color: #3498db;
  font-weight: 700;
}

.contactBox {
  background: #ecf0f1;
  border-radius: 8px;
  margin-top: 20px;
  padding: 24px;
}

.contactBox p {
  text-align: left;
}

.contactBox a {
  color: #3498db;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 14px;
}

.alert svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.alertInfo {
  background: #e6f4ff;
  border-color: #91caff;
}

.alertInfo svg {
  color: #1677ff;
}

.alertWarning {
  background: #fffbe6;
  border-color: #ffe58f;
}

.alertWarning svg {
  color: #faad14;
}

.alertTitle {
  margin-bottom: 4px;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.88);
}

.alertBody {
  color: rgba(0, 0, 0, 0.88);
}

.alertBody a {
  color: #3498db;
  font-weight: 700;
}

.copyright {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #dddddd;
  text-align: center;
  color: #7f8c8d;
  font-size: 14px;
}

/* ========== Footer ========== */
.footerSection {
  background-color: #ffffff;
  width: 100%;
  padding: 48px 0 0;
  border-top: 1px solid #f0f0f0;
  font-family: 'Open Sans', sans-serif;
}

.footerContent {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 32px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.footerColumn {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footerLogo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footerLogoImage {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 8px;
  object-fit: contain;
}

.footerLogoText {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footerLogoTitle,
.footerLogoSubtitle {
  margin: 0;
  font-size: 16px;
  color: #ca4358;
}

.footerLogoTitle {
  font-weight: 500;
}

.footerLogoSubtitle {
  font-weight: 700;
}

.footerDescription {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #120507;
}

.footerAppHeader {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 12px;
}

.footerAppTitle {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
  color: #120507;
  white-space: nowrap;
}

.footerAppStores {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footerAppStorePair {
  display: flex;
  align-items: center;
}

.footerAppStoreQR {
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eeeeee;
  border-radius: 6px;
  overflow: hidden;
}

.footerAppStoreQR img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footerAppStoreItem {
  display: flex;
  align-items: center;
  padding: 6px 5px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.footerAppStore {
  display: block;
  height: 15px;
  width: auto;
  transition: opacity 0.2s ease;
}

.footerAppStore:hover {
  opacity: 0.8;
}

.footerLinks,
.footerContact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footerLinksTitle,
.footerContactTitle {
  margin: 0;
  font-weight: 600;
  font-size: 1.25rem;
  color: #120507;
}

.footerLinksList,
.footerContactList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footerLink {
  font-size: 14px;
  color: #120507;
  font-weight: 600;
}

.footerLink:hover {
  color: #ca4358;
}

.footerContactItem {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footerContactItem svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: #ca4358;
}

.footerContactText {
  margin: 0;
  flex: 1;
  font-size: 14px;
  color: #120507;
}

.footerBottom {
  border-top: 1px solid #f0f0f0;
  padding: 16px 0 24px;
  margin-top: 16px;
  font-weight: 600;
}

.footerBottomContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.footerBottomCenter {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footerBottomLink {
  font-size: 14px;
  color: #120507;
  transition: color 0.2s ease;
}

.footerBottomLink:hover {
  color: #ca4358;
}

/* ========== Responsive ========== */
@media (max-width: 992px) and (min-width: 769px) {
  .logoTitleMain,
  .logoTitleSub {
    font-size: 15px;
  }

  .btn {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 12px;
  }

  .logoContainer {
    gap: 8px;
  }

  .logoImage {
    width: 40px;
    height: 40px;
  }

  .logoTitleMain {
    font-size: 14px;
    line-height: 18px;
  }

  .logoTitleSub {
    font-size: 13px;
    line-height: 18px;
  }

  .logoTitleSubFull {
    display: none;
  }

  .logoTitleSubShort {
    display: inline;
  }

  .logoText {
    white-space: nowrap;
  }

  .authButtons {
    gap: 8px;
  }

  .btn {
    padding: 0 16px;
  }

  .page {
    margin: 16px 12px 24px;
    padding: 16px 12px;
  }

  .pageHeader h1 {
    font-size: 30px;
  }

  .card {
    padding: 24px 16px;
  }

  .section h2 {
    font-size: 22px;
  }

  .section h3 {
    font-size: 18px;
  }

  .section ul {
    margin-left: 20px;
  }

  .footerAppStore {
    height: 24px;
  }

  .footerContent,
  .footerBottomContent {
    padding: 0 12px;
  }
}

@media (max-width: 767px) {
  .footerSection {
    padding: 32px 0 16px;
  }

  .footerContent {
    grid-template-columns: 1fr;
  }

  .footerBottomContent {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footerBottomCenter {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .logoTitleMain {
    font-size: 12px;
    line-height: 16px;
  }

  .logoTitleSub {
    font-size: 11px;
    line-height: 16px;
  }

  .logoImage {
    width: 35px;
    height: 35px;
  }

  .logoContainer {
    gap: 6px;
  }

  .authButtons {
    gap: 6px;
  }

  .btn {
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
  }
}
