/* Copyright (c) 2026 Peakora. All rights reserved. Licensed under the MIT License; see NOTICE and LICENSE. */
/* ---------------------------------------------------
   PEAKORA SHARED LEGAL & INFO STYLES
   Dodo Payments Merchant of Record Compliant & Theme-Aware
--------------------------------------------------- */

:root {
  --bg-color: #0c0a15;
  --card-bg: #151122;
  --text-main: #f8fafc;
  --text-muted: #a0aec0;
  --heading-color: #ffffff;
  --accent-color: #f4a261;
  --accent-gradient: linear-gradient(135deg, #e07a5f, #f4a261, #a78bfa);
  --border-color: rgba(255, 255, 255, 0.1);
  --box-bg: #1a1528;
}

html[data-theme="sunrise"], body[data-theme="sunrise"] {
  --bg-color: #0c0a15;
  --card-bg: #151122;
  --text-main: #f8fafc;
  --text-muted: #a0aec0;
  --heading-color: #ffffff;
  --accent-color: #f4a261;
  --accent-gradient: linear-gradient(135deg, #e07a5f, #f4a261, #a78bfa);
  --border-color: rgba(224, 122, 95, 0.25);
  --box-bg: #1a1528;
}

html[data-theme="twilight"], body[data-theme="twilight"] {
  --bg-color: #0f0a1c;
  --card-bg: #18112a;
  --text-main: #f8fafc;
  --text-muted: #c4b5fd;
  --heading-color: #ffffff;
  --accent-color: #c084fc;
  --accent-gradient: linear-gradient(135deg, #a78bfa, #8b5cf6, #ec4899);
  --border-color: rgba(167, 139, 250, 0.25);
  --box-bg: #1f1636;
}

html[data-theme="sage"], body[data-theme="sage"] {
  --bg-color: #08140e;
  --card-bg: #112218;
  --text-main: #f8fafc;
  --text-muted: #a7f3d0;
  --heading-color: #ffffff;
  --accent-color: #34d399;
  --accent-gradient: linear-gradient(135deg, #34d399, #10b981, #f59e0b);
  --border-color: rgba(52, 211, 153, 0.25);
  --box-bg: #162a1f;
}

html[data-theme="ocean"], body[data-theme="ocean"] {
  --bg-color: #080e1a;
  --card-bg: #10192e;
  --text-main: #f8fafc;
  --text-muted: #bae6fd;
  --heading-color: #ffffff;
  --accent-color: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8, #0284c7, #818cf8);
  --border-color: rgba(56, 189, 248, 0.25);
  --box-bg: #16223d;
}

html[data-theme="sunset"], body[data-theme="sunset"] {
  --bg-color: #180a14;
  --card-bg: #261121;
  --text-main: #f8fafc;
  --text-muted: #fecdd3;
  --heading-color: #ffffff;
  --accent-color: #fb7185;
  --accent-gradient: linear-gradient(135deg, #f43f5e, #fb7185, #f4a261);
  --border-color: rgba(244, 63, 94, 0.25);
  --box-bg: #30172a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* PAGE CONTAINER */
.page-section, .contact-section {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 24px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 16px;
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 999px;
  margin: 20px auto 30px;
}

.page-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 20px;
  text-align: justify;
}

.page-heading {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-list {
  margin: 0 0 24px;
  padding-left: 20px;
}

.page-list li {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.6;
  text-align: justify;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* BUTTONS */
.button-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn, .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--accent-gradient);
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover, .submit-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid var(--border-color);
}

/* FORM STYLES */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-weight: 600;
  font-size: 13px;
  color: var(--heading-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--border-color);
}

.form-error-msg {
  font-size: 12px;
  color: #ef4444;
  font-weight: 600;
  min-height: 16px;
  transition: all 0.2s ease;
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 14px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .page-section, .contact-section {
    margin: 20px auto;
    padding: 0 16px;
  }
  .page-title {
    font-size: 26px;
  }
  .page-subtitle {
    font-size: 14px;
  }
  .page-text, .page-list li {
    font-size: 14px;
  }
}

/* PAGE NAVIGATION (shared across aboutus, contactus, privacy, etc.) */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-nav-link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.page-nav-link:hover {
  color: #ffffff;
  border-color: rgba(244, 162, 97, 0.4);
  background: rgba(244, 162, 97, 0.08);
  box-shadow: 0 0 18px rgba(224, 122, 95,0.18);
}
