<template>
  <div class="docs">
    <div class="docs__top">
      <div class="container">
        <div class="docs__top-wrapper">
          <h1 class="docs__top-title">{{ t('docs.shipping.title') }}</h1>
        </div>
      </div>
    </div>
    <div class="docs__main">
      <div class="container">
        <div
            class="docs__main-wrapper"
            v-if="post.content && !pending"
        >
          <div class="content" v-html="post.content" />
        </div>
        <skeletons-docs v-else />
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import {usePostBySlug} from "@composables/posts";
import {usePageTitle} from "@composables/utils";

const {t} = useI18n();

const { post, pending } = await usePostBySlug('shipping-information');
const { setPageTitle } = usePageTitle();

setPageTitle(t('breadcrumbs.shipping'));
</script>

<style lang="scss" scoped>
.docs {
  &__top {
    padding-block: 50px;
    background-color: #f8f8f8;

    &-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }

    &-title {
      font-family: "Playfair Display", sans-serif;
      font-weight: 700;
      font-size: 36px;
      letter-spacing: -0.5px;
    }

    &-text {
      max-width: 600px;
      text-align: center;
      color: #4b5563;
      font-size: 18px;
      font-weight: 400;
      letter-spacing: -0.5px;
    }
  }

  &__main {
    background-color: $white;
    padding-block: 50px 100px;

    &-wrapper {
      display: flex;
      flex-direction: column;
      gap: 50px;

      & .content {
        display: flex;
        flex-direction: column;
        gap: 30px;

        color: #1a1a1a;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: -0.5px;
      }
    }
  }
}

:deep(ul) {
  padding-left: 20px;
}
</style>