﻿/* =========================================================
   AdventureNET — Termeni pentru Gazde Page Styles
   =========================================================
   Autor: Negoiță Andreea Iuliana | Coordonator: conf.univ.dr. Toader Florentina
   
   Pagina: Termeni și condiții pentru gazde
   Dependințe: tokens.css, base.css, components.css, header.css, footer.css
   ========================================================= */

/* ---------------------------------------------------------
   Page Layout
   --------------------------------------------------------- */
.page-host-terms {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-host-terms .page-main {
  flex: 1;
  padding-top: 80px; /* Header height */
}

/* ---------------------------------------------------------
   Legal Hero Section
   --------------------------------------------------------- */
.legal-hero {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.15) 0%, 
    rgba(var(--color-surface-rgb, 15, 23, 42), 0.95) 50%,
    rgba(52, 211, 153, 0.1) 100%
  );
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.legal-hero .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb-light {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.breadcrumb-light a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumb-light a:hover {
  color: var(--color-primary);
}

.breadcrumb-light .separator {
  opacity: 0.5;
}

.breadcrumb-light .current {
  color: var(--color-text);
}

/* Hero Content */
.legal-hero-content {
  text-align: center;
}

.legal-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-6);
  box-shadow: 
    0 0 40px rgba(16, 185, 129, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.legal-hero-icon {
  width: 40px;
  height: 40px;
  color: white;
}

.legal-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.legal-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.legal-date,
.legal-read-time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.legal-meta .icon-sm {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* ---------------------------------------------------------
   Table of Contents
   --------------------------------------------------------- */
.legal-toc {
  padding: var(--space-8) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.legal-toc .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.toc-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.toc-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.toc-title .icon {
  width: 20px;
  height: 20px;
  color: #10b981;
}

.toc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.toc-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.toc-link:hover {
  color: #10b981;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.toc-link.active {
  color: white;
  background: #10b981;
  border-color: #10b981;
}

/* ---------------------------------------------------------
   Legal Content Section
   --------------------------------------------------------- */
.legal-content {
  padding: var(--space-12) 0;
}

.legal-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-10);
  align-items: start;
}

/* ---------------------------------------------------------
   Sidebar
   --------------------------------------------------------- */
.legal-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.sidebar-card.highlight-card {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.15) 0%, 
    var(--color-bg-card) 100%
  );
  border-color: rgba(16, 185, 129, 0.3);
  text-align: center;
}

.highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
}

.highlight-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.highlight-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.highlight-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.sidebar-card h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar-links a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.sidebar-links a:hover {
  color: #10b981;
}

.sidebar-card > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Legal Article
   --------------------------------------------------------- */
.legal-article {
  min-width: 0;
}

.legal-section {
  margin-bottom: var(--space-12);
  scroll-margin-top: 100px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.section-header-legal {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.section-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-lg);
}

.section-header-legal h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.section-content {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.8;
}

.section-content p {
  margin-bottom: var(--space-4);
}

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

.section-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.section-content a {
  color: #10b981;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.section-content a:hover {
  border-bottom-color: #10b981;
}

/* ---------------------------------------------------------
   Info Box
   --------------------------------------------------------- */
.info-box {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-xl);
  margin: var(--space-6) 0;
}

.info-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #10b981;
  border-radius: var(--radius-lg);
}

.info-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.info-content h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.info-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Warning Box
   --------------------------------------------------------- */
.warning-box {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-xl);
  margin: var(--space-6) 0;
}

.warning-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f59e0b;
  border-radius: var(--radius-lg);
}

.warning-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.warning-content h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.warning-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Steps Process
   --------------------------------------------------------- */
.steps-process {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.step-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.step-item:hover {
  border-color: #10b981;
  transform: translateX(4px);
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-lg);
}

/* Step number with icon (Section 6) */
.step-number svg {
  width: 20px;
  height: 20px;
  color: white;
}

.step-content h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Data Categories Grid (Section 2)
   --------------------------------------------------------- */
.data-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.data-category-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: all var(--transition-base);
}

.data-category-card:hover {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
}

.category-icon.identity {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.category-icon.payment {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.category-icon.usage {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.category-icon.technical {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.category-icon svg {
  width: 22px;
  height: 22px;
}

.data-category-card h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.data-category-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.data-category-card li {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.data-category-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  opacity: 0.6;
}

/* ---------------------------------------------------------
   Rights Grid (Section 3, 5)
   --------------------------------------------------------- */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.right-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: all var(--transition-base);
}

.right-card:hover {
  border-color: #10b981;
  transform: translateY(-2px);
}

.right-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  color: #10b981;
}

.right-icon svg {
  width: 20px;
  height: 20px;
}

.right-card h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.right-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Cookie Type Cards (Section 4, 7)
   --------------------------------------------------------- */
.cookie-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.cookie-type-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.cookie-type-card:hover {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cookie-header {
  padding: var(--space-4);
  text-align: center;
}

.cookie-header h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: white;
  margin: 0;
}

.cookie-body {
  padding: var(--space-4);
}

.cookie-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-2);
  line-height: 1.6;
}

.cookie-body p:last-child {
  margin-bottom: 0;
}

.cookie-note {
  font-size: var(--text-xs) !important;
  color: #10b981 !important;
  font-weight: 500;
  margin-top: var(--space-2) !important;
}

/* ---------------------------------------------------------
   Authority Info (Section 8)
   --------------------------------------------------------- */
.authority-info {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.authority-info h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.authority-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Legal CTA Section
   --------------------------------------------------------- */
.legal-cta {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.1) 0%, 
    var(--color-surface) 50%,
    rgba(52, 211, 153, 0.05) 100%
  );
  border-top: 1px solid var(--color-border);
}

.legal-cta .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.cta-content p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   Mobile Responsive
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
  
  .legal-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    order: 2;
  }
  
  .legal-article {
    order: 1;
  }
  
  .sidebar-card {
    flex: 1 1 calc(50% - var(--space-3));
    min-width: 250px;
  }
  
  .cookie-types {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: var(--space-12) 0 var(--space-8);
  }
  
  .legal-title {
    font-size: var(--text-3xl);
  }
  
  .legal-icon-wrapper {
    width: 64px;
    height: 64px;
  }
  
  .legal-hero-icon {
    width: 32px;
    height: 32px;
  }
  
  .toc-nav {
    flex-direction: column;
  }
  
  .toc-link {
    justify-content: flex-start;
  }
  
  .data-categories,
  .rights-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-types {
    grid-template-columns: 1fr;
  }
  
  .sidebar-card {
    flex: 1 1 100%;
  }
  
  .section-header-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .section-number {
    min-width: 40px;
    height: 40px;
    width: 40px;
    font-size: var(--text-base);
  }
  
  .section-header-legal h2 {
    font-size: var(--text-xl);
  }
  
  .info-box,
  .warning-box {
    flex-direction: column;
  }
  
  .info-icon,
  .warning-icon {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .legal-title {
    font-size: var(--text-2xl);
  }
  
  .legal-subtitle {
    font-size: var(--text-base);
  }
  
  .legal-meta {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    align-self: center;
  }
  
  .cta-content h2 {
    font-size: var(--text-2xl);
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}

/* ---------------------------------------------------------
   Reduced Motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .legal-icon-wrapper {
    animation: none;
  }
  
  .data-category-card,
  .right-card,
  .step-item,
  .cookie-type-card,
  .toc-link {
    transition: none;
  }
  
  .data-category-card:hover,
  .right-card:hover,
  .cookie-type-card:hover {
    transform: none;
  }
  
  .step-item:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------
   Print Styles
   --------------------------------------------------------- */
@media print {
  .legal-hero {
    background: none;
    padding: var(--space-4) 0;
  }
  
  .legal-sidebar {
    display: none;
  }
  
  .legal-grid {
    display: block;
  }
  
  .legal-cta {
    display: none;
  }
  
  .legal-toc {
    display: none;
  }
  
  .section-number {
    background: none;
    color: var(--color-text);
    border: 2px solid var(--color-text);
  }
  
  .info-box,
  .warning-box {
    border: 1px solid #000;
    background: none;
  }
  
  .info-icon,
  .warning-icon {
    background: none;
    border: 1px solid #000;
  }
  
  .info-icon svg,
  .warning-icon svg {
    color: #000;
  }
}

/* -------------------------------------------------------------------
   PAGE-LEVEL AMBIENT EFFECTS - HOST PARTNERSHIP THEME
   -------------------------------------------------------------------
   Tema: Parteneriat gazde, creștere, succes
   Culori: Emerald (#10b981), Teal (#14b8a6), Gold accent
   ------------------------------------------------------------------- */

/* --- Primary Floating Orb (Emerald Growth) --- */
.page-host-terms::before {
  content: '';
  position: fixed;
  top: 15%;
  left: -12%;
  width: 550px;
  height: 550px;
  background: radial-gradient(
    circle at center,
    rgba(16, 185, 129, 0.14) 0%,
    rgba(20, 184, 166, 0.09) 35%,
    rgba(16, 185, 129, 0.03) 60%,
    transparent 75%
  );
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: hostTermsOrbPrimary 24s ease-in-out infinite;
}

/* --- Secondary Floating Orb (Gold Success) --- */
.page-host-terms::after {
  content: '';
  position: fixed;
  bottom: 10%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle at center,
    rgba(251, 191, 36, 0.10) 0%,
    rgba(245, 158, 11, 0.06) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  animation: hostTermsOrbSecondary 28s ease-in-out infinite;
}

/* --- Keyframe Animations --- */
@keyframes hostTermsOrbPrimary {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.14;
  }
  50% {
    transform: translate(50px, 35px) scale(1.06);
    opacity: 0.18;
  }
}

@keyframes hostTermsOrbSecondary {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.10;
  }
  50% {
    transform: translate(-40px, -25px) scale(1.05);
    opacity: 0.14;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .page-host-terms::before {
    width: 320px;
    height: 320px;
    filter: blur(35px);
  }
  
  .page-host-terms::after {
    width: 380px;
    height: 380px;
    filter: blur(40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-host-terms::before,
  .page-host-terms::after {
    animation: none !important;
  }
}

