/* SyncClip LP — Legal & Contact pages
   Brand: #0A8F8F (fixed), UI Accent Dark: #0B9696
   Dark-first design matching SyncClip app */

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

:root {
  --brand: #0A8F8F;
  --accent: #0B9696;
  --bg: #141414;
  --surface: #1C1C1E;
  --surface-hover: #2C2C2E;
  --border: #38383A;
  --text: #F5F5F7;
  --text-secondary: #AEAEB2;
  --text-muted: #8E8E93;
  --danger: #FF453A;
  --success: #30D158;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 100px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.header-logo span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.header-nav {
  display: flex;
  gap: 6px;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.header-nav a.active {
  color: var(--text);
  background: var(--surface);
}

/* ── Main content ───────────────────── */
.page-content {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  width: 100%;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.page-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.section-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-body ul {
  list-style: none;
  margin-top: 10px;
}

.section-body ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.section-body ul li::before {
  content: '・';
  position: absolute;
  left: 0;
}

/* ── Contact form ───────────────────── */
.form-section {
  margin-top: 32px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-left: 4px;
}

.form-group {
  margin-bottom: 28px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.7;
}

.char-count {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}

/* Category chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  background: var(--surface-hover);
}

.chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.submit-btn:hover {
  opacity: 0.9;
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form messages */
.form-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 8px;
  padding-left: 4px;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
}

.success-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.success-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Turnstile */
.turnstile-wrap {
  margin-bottom: 24px;
}

/* ── Footer ─────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Contact link button (on terms/privacy pages) ── */
.contact-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.contact-link-btn:hover {
  opacity: 0.9;
}

/* ── Responsive ─────────────────────── */
@media (max-width: 600px) {
  .page-content {
    padding: 32px 20px 60px;
  }
  .page-title {
    font-size: 24px;
  }
  .header-inner {
    padding: 12px 16px;
  }
  .header-nav a {
    padding: 6px 8px;
    font-size: 12px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
