* {
  box-sizing: border-box;
}

html {
  background: #f8fafc;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f8fafc;
  color: #1e293b;
}

.app-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  height: calc(56px + env(safe-area-inset-top));
  min-height: calc(56px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-left: max(8px, env(safe-area-inset-left));
  padding-right: max(8px, env(safe-area-inset-right));
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.back-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.back-btn:hover {
  background: #e2e8f0;
}

.back-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.app-header-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  padding-right: 44px;
}

.privacy-main {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.privacy-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  padding: 20px 18px;
}

.more-legal-content {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.more-legal-content h3 {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.more-legal-content h3:first-child {
  margin-top: 0;
}

.more-legal-content p {
  margin: 0 0 12px;
}

.more-legal-content p:last-child {
  margin-bottom: 0;
}

.more-legal-content a {
  color: #2563eb;
  text-decoration: none;
}

.more-legal-content a:hover {
  text-decoration: underline;
}

.more-legal-content ol {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.more-legal-content ol li {
  margin-bottom: 4px;
}

.more-legal-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
