/* =============================================
   NexaMenu – Privacy Policy Stylesheet
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:       #FF6B35;
  --primary-dark:  #E55A25;
  --primary-light: #FFF0EB;
  --secondary:     #2C3E50;
  --secondary-light: #34495E;
  --accent:        #27AE60;
  --danger:        #E74C3C;
  --danger-light:  #FDEDEC;
  --warning:       #F39C12;
  --warning-light: #FEF9E7;
  --text-primary:  #1A202C;
  --text-secondary:#4A5568;
  --text-muted:    #718096;
  --border:        #E2E8F0;
  --bg-light:      #F7FAFC;
  --bg-white:      #FFFFFF;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --font-main:     'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition:    0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--bg-white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { font-size: 1.6rem; }

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.header-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}

.header-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 60%, #FF6B35 100%);
  color: white;
  padding: 72px 0 60px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 20px;
}

.hero-sub strong { opacity: 1; font-weight: 600; }

.hero-desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.75;
}

/* ---- MAIN ---- */
.main-content {
  padding: 48px 24px 64px;
}

/* ---- QUICK NAV ---- */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 52px;
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.nav-card:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.highlight-card {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
  background: var(--danger-light) !important;
}

.highlight-card:hover {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
}

.nav-icon { font-size: 1.6rem; }

/* ---- POLICY SECTIONS ---- */
.policy-section {
  margin-bottom: 60px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary-light);
}

.section-number {
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.policy-section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.policy-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

/* ---- STYLED LIST ---- */
.styled-list {
  list-style: none;
  padding: 0;
}

.styled-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-light);
}

.styled-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- INFO BOX ---- */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #EBF8FF;
  border: 1px solid #BEE3F8;
  border-left: 4px solid #3182CE;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 20px;
}

.info-box p { color: #2C5282; margin: 0; font-size: 0.92rem; }

.warning-box {
  background: var(--warning-light);
  border-color: #F6C26A;
  border-left-color: var(--warning);
}

.warning-box p { color: #744210; }

.info-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ---- USE GRID ---- */
.use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.use-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}

.use-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.use-icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }

.use-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.use-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- DATA TABLE ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--secondary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.data-table th:first-child { border-radius: 8px 0 0 0; }
.data-table th:last-child  { border-radius: 0 8px 0 0; }

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table tr:nth-child(even) td { background: var(--bg-light); }
.data-table tr:hover td { background: var(--primary-light); }

/* ---- SECURITY GRID ---- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.security-icon { font-size: 1.6rem; flex-shrink: 0; }

.security-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.security-item p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- RIGHTS LIST ---- */
.rights-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.rights-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.rights-badge {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =============================================
   DELETE ACCOUNT SECTION – Special Styling
   ============================================= */

.delete-section {
  border: 2px solid var(--danger) !important;
  background: linear-gradient(to bottom, #FFF5F5, var(--bg-white)) !important;
}

.delete-section .section-header {
  border-bottom-color: var(--danger-light);
}

.delete-number {
  background: var(--danger) !important;
}

.delete-section .section-header h2 {
  color: var(--danger);
}

.delete-intro {
  background: var(--danger-light);
  border: 1px solid #FEB2B2;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.delete-intro p {
  color: #742A2A;
  margin: 0;
  font-size: 0.95rem;
}

/* Delete info grid */
.delete-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.delete-info-card {
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.delete-info-card.deleted {
  background: #FFF5F5;
  border: 2px solid #FEB2B2;
}

.delete-info-card.retained {
  background: #FFFFF0;
  border: 2px solid #FAF089;
}

.delete-info-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.delete-info-card ul {
  list-style: none;
  padding: 0;
}

.delete-info-card ul li {
  font-size: 0.87rem;
  color: var(--text-secondary);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}

.delete-info-card.deleted ul li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}

.delete-info-card.retained ul li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--warning);
  font-size: 0.5rem;
  top: 10px;
}

/* Steps */
.steps-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 20px;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
}

.step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-left: 3px solid var(--border);
  padding-left: 24px;
  margin-left: 20px;
  position: relative;
}

.step:last-child { border-left-color: transparent; }

.step-number {
  position: absolute;
  left: -20px;
  top: 20px;
  width: 40px;
  height: 40px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--bg-white);
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* CTA area */
.delete-cta {
  margin-top: 8px;
}

.delete-cta-inner {
  background: var(--bg-white);
  border: 2px solid var(--danger);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}

.delete-warning {
  display: flex;
  gap: 16px;
  background: var(--danger-light);
  border: 1px solid #FEB2B2;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.warning-icon { font-size: 1.5rem; flex-shrink: 0; }

.delete-warning h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #742A2A;
  margin-bottom: 6px;
}

.delete-warning p {
  font-size: 0.88rem;
  color: #742A2A;
  margin: 0;
}

.delete-form-area h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.delete-form-area > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.delete-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.required { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-main);
  color: var(--text-primary);
  transition: border-color var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--danger-light);
  border: 1px solid #FEB2B2;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--danger);
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.85rem;
  color: #742A2A;
  cursor: pointer;
  line-height: 1.5;
}

.delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--danger);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
  max-width: 320px;
  margin-top: 8px;
}

.delete-btn:hover {
  background: #C0392B;
  transform: translateY(-1px);
}

.delete-btn:active {
  transform: translateY(0);
}

/* Success message */
.hidden { display: none !important; }

.delete-success {
  text-align: center;
  background: #F0FFF4;
  border: 2px solid #9AE6B4;
  border-radius: var(--radius-md);
  padding: 36px;
  margin-top: 24px;
}

.success-icon { font-size: 3rem; display: block; margin-bottom: 16px; }

.delete-success h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #276749;
  margin-bottom: 12px;
}

.delete-success p {
  color: #2F855A;
  font-size: 0.92rem;
  margin: 0;
  max-width: 500px;
  margin: 0 auto;
}

/* ---- CONTACT GRID ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.contact-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }

.contact-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-card a {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 24px;
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand .logo-text {
  color: white;
  font-size: 1.2rem;
}

.footer-tagline {
  font-size: 0.82rem;
  opacity: 0.6;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

.footer-links a:hover { color: white; text-decoration: underline; }

.footer-copy p {
  font-size: 0.82rem;
  opacity: 0.6;
}

.footer-note {
  margin-top: 6px;
  font-size: 0.78rem !important;
  opacity: 0.45 !important;
  max-width: 560px;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--primary);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero { padding: 48px 0 40px; }

  .policy-section { padding: 24px 20px; }

  .section-header h2 { font-size: 1.25rem; }

  .delete-info-grid { grid-template-columns: 1fr; }

  .delete-cta-inner { padding: 24px 20px; }

  .use-grid { grid-template-columns: 1fr 1fr; }

  .security-grid { grid-template-columns: 1fr; }

  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 10px 12px; }

  .header-nav { display: none; }

  .delete-btn { max-width: 100%; }

  .steps-container { margin-left: 0; }
  .step { padding-left: 56px; margin-left: 0; border-left: none; }
  .step-number { left: 0; }
}

@media (max-width: 480px) {
  .quick-nav { grid-template-columns: repeat(3, 1fr); }
  .use-grid  { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.7rem; }
}
